#[non_exhaustive]pub enum H1ConnectionResult<Transport> {
Upgrade(Upgrade<Transport>),
Close(H1Close<Transport>),
Error(Error),
}Expand description
How an HTTP/1.x connection ended.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Upgrade(Upgrade<Transport>)
The connection negotiated an upgrade, which now owns the transport.
Close(H1Close<Transport>)
The connection is finished. Await the H1Close to close it gracefully, or drop it to
hang up immediately.
Error(Error)
The connection ended with an error, such as a transport failure or a client that disconnected partway through a request.
Trait Implementations§
Auto Trait Implementations§
impl<Transport> !RefUnwindSafe for H1ConnectionResult<Transport>
impl<Transport> !UnwindSafe for H1ConnectionResult<Transport>
impl<Transport> Freeze for H1ConnectionResult<Transport>
impl<Transport> Send for H1ConnectionResult<Transport>
impl<Transport> Sync for H1ConnectionResult<Transport>
impl<Transport> Unpin for H1ConnectionResult<Transport>
impl<Transport> UnsafeUnpin for H1ConnectionResult<Transport>
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