pub struct Http2HeaderBlockSequence { /* private fields */ }Expand description
Validates one bounded HTTP/2 header-block fragment sequence at a time.
This type validates only the immediate HEADERS, PUSH_PROMISE, and CONTINUATION ordering rule. It does not buffer fragments, decode HPACK, or track connection state.
Implementations§
Source§impl Http2HeaderBlockSequence
impl Http2HeaderBlockSequence
Sourcepub const fn is_idle(&self) -> bool
pub const fn is_idle(&self) -> bool
Returns whether no header block is awaiting a CONTINUATION frame.
Sourcepub const fn is_open(&self) -> bool
pub const fn is_open(&self) -> bool
Returns whether a header block is awaiting a CONTINUATION frame.
Sourcepub const fn locked_stream_id(&self) -> Option<u32>
pub const fn locked_stream_id(&self) -> Option<u32>
Returns the semantic 31-bit stream ID locked by an open header block.
Sourcepub fn observe<'a>(
&mut self,
frame: Http2Frame<'a>,
) -> Result<Option<Http2HeaderBlockFragment<'a>>, Http2HeaderBlockSequenceError>
pub fn observe<'a>( &mut self, frame: Http2Frame<'a>, ) -> Result<Option<Http2HeaderBlockFragment<'a>>, Http2HeaderBlockSequenceError>
Observes one structurally validated frame.
Unrelated frames are ignored while idle. Accepted fragment views preserve their raw frame metadata and borrow from the supplied frame.
Trait Implementations§
Source§impl Clone for Http2HeaderBlockSequence
impl Clone for Http2HeaderBlockSequence
impl Copy for Http2HeaderBlockSequence
Source§impl Debug for Http2HeaderBlockSequence
impl Debug for Http2HeaderBlockSequence
Source§impl Default for Http2HeaderBlockSequence
impl Default for Http2HeaderBlockSequence
impl Eq for Http2HeaderBlockSequence
Source§impl PartialEq for Http2HeaderBlockSequence
impl PartialEq for Http2HeaderBlockSequence
impl StructuralPartialEq for Http2HeaderBlockSequence
Auto Trait Implementations§
impl Freeze for Http2HeaderBlockSequence
impl RefUnwindSafe for Http2HeaderBlockSequence
impl Send for Http2HeaderBlockSequence
impl Sync for Http2HeaderBlockSequence
impl Unpin for Http2HeaderBlockSequence
impl UnsafeUnpin for Http2HeaderBlockSequence
impl UnwindSafe for Http2HeaderBlockSequence
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