pub enum H2SendResponse {
Initial(SendResponse<Bytes>),
Pushed(SendPushedResponse<Bytes>),
}
Available on crate feature
http2
only.Expand description
Abstraction layer over different kinds of HTTP/2 response senders.
Variants§
Initial(SendResponse<Bytes>)
The initial response
Pushed(SendPushedResponse<Bytes>)
Server-pushed responses
Trait Implementations§
Auto Trait Implementations§
impl Freeze for H2SendResponse
impl RefUnwindSafe for H2SendResponse
impl Send for H2SendResponse
impl Sync for H2SendResponse
impl Unpin for H2SendResponse
impl UnwindSafe for H2SendResponse
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