pub struct QuicCryptoFrame<'a> { /* private fields */ }Expand description
A checked borrowed RFC 9000 CRYPTO frame view.
Implementations§
Source§impl<'a> QuicCryptoFrame<'a>
impl<'a> QuicCryptoFrame<'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 offset(self) -> QuicVarInt<'a>
pub const fn offset(self) -> QuicVarInt<'a>
Returns the exact encoded CRYPTO offset variable integer.
Sourcepub const fn length(self) -> QuicVarInt<'a>
pub const fn length(self) -> QuicVarInt<'a>
Returns the exact encoded CRYPTO data-length variable integer.
Sourcepub const fn crypto_data(self) -> &'a [u8]
pub const fn crypto_data(self) -> &'a [u8]
Returns the exact borrowed CRYPTO data bytes, which may be empty.
Trait Implementations§
Source§impl<'a> Clone for QuicCryptoFrame<'a>
impl<'a> Clone for QuicCryptoFrame<'a>
impl<'a> Copy for QuicCryptoFrame<'a>
Source§impl<'a> Debug for QuicCryptoFrame<'a>
impl<'a> Debug for QuicCryptoFrame<'a>
impl<'a> Eq for QuicCryptoFrame<'a>
Source§impl<'a> PartialEq for QuicCryptoFrame<'a>
impl<'a> PartialEq for QuicCryptoFrame<'a>
impl<'a> StructuralPartialEq for QuicCryptoFrame<'a>
Auto Trait Implementations§
impl<'a> Freeze for QuicCryptoFrame<'a>
impl<'a> RefUnwindSafe for QuicCryptoFrame<'a>
impl<'a> Send for QuicCryptoFrame<'a>
impl<'a> Sync for QuicCryptoFrame<'a>
impl<'a> Unpin for QuicCryptoFrame<'a>
impl<'a> UnsafeUnpin for QuicCryptoFrame<'a>
impl<'a> UnwindSafe for QuicCryptoFrame<'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