Enum trillium_http::ConnectionStatus
source · pub enum ConnectionStatus<Transport> {
Close,
Conn(Conn<Transport>),
Upgrade(Upgrade<Transport>),
}
Expand description
This represents the next state after a response on a conn transport.
Variants§
Close
The transport has been closed, either by the client or by us
Conn(Conn<Transport>)
Another Conn
request has been sent on the same transport and
is ready to respond to. This can occur any number of times and
should be handled in a loop.
Upgrade(Upgrade<Transport>)
An http upgrade has been negotiated. This is always a terminal state for a given connection.
Trait Implementations§
Auto Trait Implementations§
impl<Transport> Freeze for ConnectionStatus<Transport>where
Transport: Freeze,
impl<Transport> !RefUnwindSafe for ConnectionStatus<Transport>
impl<Transport> Send for ConnectionStatus<Transport>where
Transport: Send,
impl<Transport> Sync for ConnectionStatus<Transport>where
Transport: Sync,
impl<Transport> Unpin for ConnectionStatus<Transport>where
Transport: Unpin,
impl<Transport> !UnwindSafe for ConnectionStatus<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