pub struct Http3PendingHeaders<'state, 'wire> { /* private fields */ }Expand description
A HEADERS frame whose QPACK-decoded semantic role must be accepted before state advances.
Implementations§
Source§impl<'state, 'wire> Http3PendingHeaders<'state, 'wire>
impl<'state, 'wire> Http3PendingHeaders<'state, 'wire>
Sourcepub const fn headers(&self) -> Http3Headers<'wire>
pub const fn headers(&self) -> Http3Headers<'wire>
Returns the typed, raw-preserving HEADERS frame for QPACK decoding.
Sourcepub fn accept(
self,
section: &Http3DecodedHeaderSection<'_>,
) -> Result<Http3Headers<'wire>, Http3MessageStreamError>
pub fn accept( self, section: &Http3DecodedHeaderSection<'_>, ) -> Result<Http3Headers<'wire>, Http3MessageStreamError>
Accepts a validated QPACK-decoded header section and commits the corresponding transition.
The section is consumed semantically but remains caller-owned for message-content handling. Invalid classifications leave the stream state unchanged.
Trait Implementations§
Auto Trait Implementations§
impl<'state, 'wire> !UnwindSafe for Http3PendingHeaders<'state, 'wire>
impl<'state, 'wire> Freeze for Http3PendingHeaders<'state, 'wire>
impl<'state, 'wire> RefUnwindSafe for Http3PendingHeaders<'state, 'wire>
impl<'state, 'wire> Send for Http3PendingHeaders<'state, 'wire>
impl<'state, 'wire> Sync for Http3PendingHeaders<'state, 'wire>
impl<'state, 'wire> Unpin for Http3PendingHeaders<'state, 'wire>
impl<'state, 'wire> UnsafeUnpin for Http3PendingHeaders<'state, 'wire>
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