pub struct Header(/* private fields */);Implementations§
Source§impl Header
impl Header
Sourcepub const fn capability_id(&self) -> u8
pub const fn capability_id(&self) -> u8
Bits: 0..8
Sourcepub const fn with_capability_id_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_capability_id_checked(self, value: u8) -> Result<Self, ()>
Bits: 0..8
Sourcepub const fn with_capability_id(self, value: u8) -> Self
pub const fn with_capability_id(self, value: u8) -> Self
Bits: 0..8
Sourcepub const fn set_capability_id(&mut self, value: u8)
pub const fn set_capability_id(&mut self, value: u8)
Bits: 0..8
Sourcepub const fn next_pointer(&self) -> u8
pub const fn next_pointer(&self) -> u8
Bits: 8..16
Sourcepub const fn with_next_pointer_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_next_pointer_checked(self, value: u8) -> Result<Self, ()>
Bits: 8..16
Sourcepub const fn with_next_pointer(self, value: u8) -> Self
pub const fn with_next_pointer(self, value: u8) -> Self
Bits: 8..16
Sourcepub const fn set_next_pointer(&mut self, value: u8)
pub const fn set_next_pointer(&mut self, value: u8)
Bits: 8..16
Sourcepub const fn with_length_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_length_checked(self, value: u8) -> Result<Self, ()>
Bits: 16..24
Sourcepub const fn with_length(self, value: u8) -> Self
pub const fn with_length(self, value: u8) -> Self
Bits: 16..24
Sourcepub const fn set_length(&mut self, value: u8)
pub const fn set_length(&mut self, value: u8)
Bits: 16..24
Sourcepub const fn capabilities(&self) -> u8
pub const fn capabilities(&self) -> u8
Bits: 24..32
Sourcepub const fn with_capabilities_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_capabilities_checked(self, value: u8) -> Result<Self, ()>
Bits: 24..32
Sourcepub const fn with_capabilities(self, value: u8) -> Self
pub const fn with_capabilities(self, value: u8) -> Self
Bits: 24..32
Sourcepub const fn set_capabilities(&mut self, value: u8)
pub const fn set_capabilities(&mut self, value: u8)
Bits: 24..32
Trait Implementations§
impl Copy for Header
Auto Trait Implementations§
impl Freeze 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