Enum hyper::server::UpgradableResponse
[−]
[src]
pub enum UpgradableResponse<P = (), B = Body> { Response(Response<B>), Upgrade(P, Option<Response<()>>), }
Either an HTTP response or a signal to upgrade from HTTP to another protocol.
If the latter, the Upgrade
variant should contain information pertaining
to this protocol switch.
Variants
Response(Response<B>)
An HTTP response.
Upgrade(P, Option<Response<()>>)
A protocol upgrade signal with accompanying information and optional "switching protocols" HTTP response head.
Trait Implementations
impl<B, P> Into<Message<Result<__ProtoResponse, (P, Option<__ProtoResponse>)>, B>> for UpgradableResponse<P, B>
[src]
fn into(
self
) -> Message<Result<__ProtoResponse, (P, Option<__ProtoResponse>)>, B>
[src]
self
) -> Message<Result<__ProtoResponse, (P, Option<__ProtoResponse>)>, B>
Performs the conversion.
impl<P, B> Debug for UpgradableResponse<P, B> where
Response<B>: Debug,
P: Debug,
[src]
Response<B>: Debug,
P: Debug,