pub struct Http3Frame<'a> { /* private fields */ }Expand description
A structurally bounded HTTP/3 frame preserving exact variable-integer encodings.
Implementations§
Source§impl<'a> Http3Frame<'a>
impl<'a> Http3Frame<'a>
Sourcepub fn parse(
bytes: &'a [u8],
maximum_payload: usize,
) -> Result<Self, Http3FrameParseError>
pub fn parse( bytes: &'a [u8], maximum_payload: usize, ) -> Result<Self, Http3FrameParseError>
Parses the first complete frame, enforcing the caller-provided payload maximum.
Sourcepub const fn frame_type(&self) -> Http3FrameType
pub const fn frame_type(&self) -> Http3FrameType
Returns the raw frame type.
Sourcepub const fn frame_type_varint(&self) -> QuicVarInt<'a>
pub const fn frame_type_varint(&self) -> QuicVarInt<'a>
Returns the exact frame type variable-length integer.
Sourcepub const fn payload_length_varint(&self) -> QuicVarInt<'a>
pub const fn payload_length_varint(&self) -> QuicVarInt<'a>
Returns the exact payload length variable-length integer.
Sourcepub fn payload_length(&self) -> usize
pub fn payload_length(&self) -> usize
Returns the declared payload length.
Trait Implementations§
Source§impl<'a> Clone for Http3Frame<'a>
impl<'a> Clone for Http3Frame<'a>
impl<'a> Copy for Http3Frame<'a>
Source§impl<'a> Debug for Http3Frame<'a>
impl<'a> Debug for Http3Frame<'a>
impl<'a> Eq for Http3Frame<'a>
Source§impl<'a> PartialEq for Http3Frame<'a>
impl<'a> PartialEq for Http3Frame<'a>
impl<'a> StructuralPartialEq for Http3Frame<'a>
Auto Trait Implementations§
impl<'a> Freeze for Http3Frame<'a>
impl<'a> RefUnwindSafe for Http3Frame<'a>
impl<'a> Send for Http3Frame<'a>
impl<'a> Sync for Http3Frame<'a>
impl<'a> Unpin for Http3Frame<'a>
impl<'a> UnsafeUnpin for Http3Frame<'a>
impl<'a> UnwindSafe for Http3Frame<'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