pub struct QuicConnectionCloseFrame<'a> { /* private fields */ }Expand description
A checked borrowed RFC 9000 CONNECTION_CLOSE frame view.
Implementations§
Source§impl<'a> QuicConnectionCloseFrame<'a>
impl<'a> QuicConnectionCloseFrame<'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 error_code(self) -> QuicVarInt<'a>
pub const fn error_code(self) -> QuicVarInt<'a>
Returns the exact encoded error-code variable integer.
Sourcepub const fn triggering_frame_type(self) -> Option<QuicVarInt<'a>>
pub const fn triggering_frame_type(self) -> Option<QuicVarInt<'a>>
Returns the triggering frame type for a transport close, if present.
Sourcepub const fn reason_phrase_length(self) -> QuicVarInt<'a>
pub const fn reason_phrase_length(self) -> QuicVarInt<'a>
Returns the exact encoded reason-phrase-length variable integer.
Sourcepub const fn reason_phrase(self) -> &'a [u8]
pub const fn reason_phrase(self) -> &'a [u8]
Returns the exact opaque reason-phrase bytes, which may be empty.
Trait Implementations§
Source§impl<'a> Clone for QuicConnectionCloseFrame<'a>
impl<'a> Clone for QuicConnectionCloseFrame<'a>
impl<'a> Copy for QuicConnectionCloseFrame<'a>
Source§impl<'a> Debug for QuicConnectionCloseFrame<'a>
impl<'a> Debug for QuicConnectionCloseFrame<'a>
impl<'a> Eq for QuicConnectionCloseFrame<'a>
Source§impl<'a> PartialEq for QuicConnectionCloseFrame<'a>
impl<'a> PartialEq for QuicConnectionCloseFrame<'a>
impl<'a> StructuralPartialEq for QuicConnectionCloseFrame<'a>
Auto Trait Implementations§
impl<'a> Freeze for QuicConnectionCloseFrame<'a>
impl<'a> RefUnwindSafe for QuicConnectionCloseFrame<'a>
impl<'a> Send for QuicConnectionCloseFrame<'a>
impl<'a> Sync for QuicConnectionCloseFrame<'a>
impl<'a> Unpin for QuicConnectionCloseFrame<'a>
impl<'a> UnsafeUnpin for QuicConnectionCloseFrame<'a>
impl<'a> UnwindSafe for QuicConnectionCloseFrame<'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