pub enum Http2HeaderBlockFragment<'a> {
Headers(Http2Headers<'a>),
PushPromise(Http2PushPromise<'a>),
Continuation(Http2Continuation<'a>),
}Expand description
An accepted HTTP/2 header-block fragment with its typed frame view intact.
Variants§
Headers(Http2Headers<'a>)
A HEADERS field-block fragment.
PushPromise(Http2PushPromise<'a>)
A PUSH_PROMISE field-block fragment.
Continuation(Http2Continuation<'a>)
A CONTINUATION field-block fragment.
Implementations§
Source§impl<'a> Http2HeaderBlockFragment<'a>
impl<'a> Http2HeaderBlockFragment<'a>
Sourcepub const fn frame(&self) -> Http2Frame<'a>
pub const fn frame(&self) -> Http2Frame<'a>
Returns the validated raw frame without erasing its original metadata.
Sourcepub fn field_block_fragment(&self) -> &'a [u8]
pub fn field_block_fragment(&self) -> &'a [u8]
Returns the exact field-block bytes represented by this fragment.
Sourcepub fn is_end_headers(&self) -> bool
pub fn is_end_headers(&self) -> bool
Returns whether this fragment ends its header block.
Trait Implementations§
Source§impl<'a> Clone for Http2HeaderBlockFragment<'a>
impl<'a> Clone for Http2HeaderBlockFragment<'a>
impl<'a> Copy for Http2HeaderBlockFragment<'a>
Source§impl<'a> Debug for Http2HeaderBlockFragment<'a>
impl<'a> Debug for Http2HeaderBlockFragment<'a>
impl<'a> Eq for Http2HeaderBlockFragment<'a>
Source§impl<'a> PartialEq for Http2HeaderBlockFragment<'a>
impl<'a> PartialEq for Http2HeaderBlockFragment<'a>
impl<'a> StructuralPartialEq for Http2HeaderBlockFragment<'a>
Auto Trait Implementations§
impl<'a> Freeze for Http2HeaderBlockFragment<'a>
impl<'a> RefUnwindSafe for Http2HeaderBlockFragment<'a>
impl<'a> Send for Http2HeaderBlockFragment<'a>
impl<'a> Sync for Http2HeaderBlockFragment<'a>
impl<'a> Unpin for Http2HeaderBlockFragment<'a>
impl<'a> UnsafeUnpin for Http2HeaderBlockFragment<'a>
impl<'a> UnwindSafe for Http2HeaderBlockFragment<'a>
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