pub enum Header {
None,
Short(ShortHeader),
Long(LongHeader),
}Expand description
The transport-layer header.
Variants§
Implementations§
Source§impl Header
impl Header
Sourcepub const fn security(&self) -> SecurityMode
pub const fn security(&self) -> SecurityMode
The security mode, or mode 0 when there is no header.
Sourcepub const fn short(&self) -> Option<&ShortHeader>
pub const fn short(&self) -> Option<&ShortHeader>
The short part (access number, status, configuration), if there is a header.
Trait Implementations§
impl Copy for Header
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Forget for Header
impl Freeze for Header
impl Move for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnsafeUnpin for Header
impl UnwindSafe for Header
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