pub enum PushedResponsePipe {
    Http2(SendPushedResponse<Bytes>),
}
Expand description

A ResponsePipe-like for a pushed request-response pair.

The only logic difference between this and ResponsePipe is the lack of a push_request method. If you want to push more than one request, use the same method on ResponsePipe more times.

Variants§

§

Http2(SendPushedResponse<Bytes>)

Available on crate feature http2 only.

A HTTP/2 pushed response pipe.

This is the only variant for now, but as HTTP/3 is implemented, a Http3 variant will be added.

Implementations§

Sends a single push response.

Errors

Errors are passed from the HTTP libraries, for now only h2. See h2::server::SendPushedResponse::send_response() for more information.

Ensures the version of response depending on inner version if PushedResponsePipe.

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

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more