pub struct IncomingH3Headers {
pub stream_id: u64,
pub headers: Vec<Header>,
pub send: OutboundFrameSender,
pub recv: InboundFrameStream,
pub read_fin: bool,
pub h3_audit_stats: Arc<H3AuditStats>,
}
Expand description
HTTP/3 headers that were received on a stream.
recv
is used to read the message body, while send
is used to transmit
data back to the peer.
Fields§
§stream_id: u64
Stream ID of the frame.
headers: Vec<Header>
The actual [h3::Header
]s which were received.
send: OutboundFrameSender
An OutboundFrameSender
for streaming body data to the peer. For
ClientH3Driver, note that the request body can also be passed a
cloned sender via NewClientRequest
.
recv: InboundFrameStream
An InboundFrameStream
of body data received from the peer.
read_fin: bool
Whether there is a body associated with the incoming headers.
h3_audit_stats: Arc<H3AuditStats>
Handle to the H3AuditStats
for the message’s stream.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IncomingH3Headers
impl !RefUnwindSafe for IncomingH3Headers
impl Send for IncomingH3Headers
impl Sync for IncomingH3Headers
impl Unpin for IncomingH3Headers
impl !UnwindSafe for IncomingH3Headers
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more