Enum trillium_http::ConnectionStatus[][src]

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.