trillium_http/
connection_status.rs

1use crate::{Conn, Upgrade};
2/// This represents the next state after a response on a conn transport.
3#[derive(Debug)]
4pub enum ConnectionStatus<Transport> {
5    /// The transport has been closed, either by the client or by us
6    Close,
7    /// Another `Conn` request has been sent on the same transport and
8    /// is ready to respond to. This can occur any number of times and
9    /// should be handled in a loop.
10    Conn(Conn<Transport>),
11    /// An http upgrade has been negotiated. This is always a terminal
12    /// state for a given connection.
13    Upgrade(Upgrade<Transport>),
14}