pub enum ServiceDisconnectReason {
Shutdown,
UpgradeHandled,
UpgradeFailed,
ExpectFailed,
PayloadDropped,
}Expand description
The reason the HTTP service is disconnecting.
Variants§
Shutdown
The server is shutting down.
UpgradeHandled
The HTTP/1 dispatcher relinquished the connection after an upgrade was handed to the application or control service.
UpgradeFailed
Upgrade handling failed.
ExpectFailed
Expectation handling failed.
PayloadDropped
The application dropped an unread request payload, preventing reuse of the connection.
Trait Implementations§
Source§impl Clone for ServiceDisconnectReason
impl Clone for ServiceDisconnectReason
Source§fn clone(&self) -> ServiceDisconnectReason
fn clone(&self) -> ServiceDisconnectReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ServiceDisconnectReason
Source§impl Debug for ServiceDisconnectReason
impl Debug for ServiceDisconnectReason
impl Eq for ServiceDisconnectReason
Source§impl PartialEq for ServiceDisconnectReason
impl PartialEq for ServiceDisconnectReason
impl StructuralPartialEq for ServiceDisconnectReason
Auto Trait Implementations§
impl Freeze for ServiceDisconnectReason
impl RefUnwindSafe for ServiceDisconnectReason
impl Send for ServiceDisconnectReason
impl Sync for ServiceDisconnectReason
impl Unpin for ServiceDisconnectReason
impl UnsafeUnpin for ServiceDisconnectReason
impl UnwindSafe for ServiceDisconnectReason
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.