pub struct QuicStreamFrame<'a> { /* private fields */ }Expand description
A checked borrowed RFC 9000 STREAM frame view.
Implementations§
Source§impl<'a> QuicStreamFrame<'a>
impl<'a> QuicStreamFrame<'a>
Sourcepub const fn frame_type(self) -> QuicVarInt<'a>
pub const fn frame_type(self) -> QuicVarInt<'a>
Returns the exact encoded frame-type variable integer.
Sourcepub const fn stream_id(self) -> QuicVarInt<'a>
pub const fn stream_id(self) -> QuicVarInt<'a>
Returns the exact encoded stream-ID variable integer.
Sourcepub const fn offset(self) -> Option<QuicVarInt<'a>>
pub const fn offset(self) -> Option<QuicVarInt<'a>>
Returns the exact encoded offset when the OFF bit is present.
None means the effective stream offset is zero.
Sourcepub const fn length(self) -> Option<QuicVarInt<'a>>
pub const fn length(self) -> Option<QuicVarInt<'a>>
Returns the exact encoded data length when the LEN bit is present.
None means stream data consumes the remaining supplied frame-sequence bytes.
Sourcepub const fn stream_data(self) -> &'a [u8]
pub const fn stream_data(self) -> &'a [u8]
Returns the exact borrowed STREAM data bytes, which may be empty.
Trait Implementations§
Source§impl<'a> Clone for QuicStreamFrame<'a>
impl<'a> Clone for QuicStreamFrame<'a>
impl<'a> Copy for QuicStreamFrame<'a>
Source§impl<'a> Debug for QuicStreamFrame<'a>
impl<'a> Debug for QuicStreamFrame<'a>
impl<'a> Eq for QuicStreamFrame<'a>
Source§impl<'a> PartialEq for QuicStreamFrame<'a>
impl<'a> PartialEq for QuicStreamFrame<'a>
impl<'a> StructuralPartialEq for QuicStreamFrame<'a>
Auto Trait Implementations§
impl<'a> Freeze for QuicStreamFrame<'a>
impl<'a> RefUnwindSafe for QuicStreamFrame<'a>
impl<'a> Send for QuicStreamFrame<'a>
impl<'a> Sync for QuicStreamFrame<'a>
impl<'a> Unpin for QuicStreamFrame<'a>
impl<'a> UnsafeUnpin for QuicStreamFrame<'a>
impl<'a> UnwindSafe for QuicStreamFrame<'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