pub struct Flags { /* private fields */ }Implementations§
Source§impl Flags
impl Flags
Sourcepub const fn into_bytes(self) -> [u8; 2]
pub const fn into_bytes(self) -> [u8; 2]
Sourcepub const fn from_bytes(bytes: [u8; 2]) -> Self
pub const fn from_bytes(bytes: [u8; 2]) -> Self
Converts the given bytes directly into the bitfield struct.
Source§impl Flags
impl Flags
Sourcepub fn extended_tx_timeout(&self) -> <bool as Specifier>::InOut
pub fn extended_tx_timeout(&self) -> <bool as Specifier>::InOut
Returns the value of extended_tx_timeout.
Sourcepub fn extended_tx_timeout_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn extended_tx_timeout_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of extended_tx_timeout.
#Errors
If the returned value contains an invalid bit pattern for extended_tx_timeout.
Sourcepub fn with_extended_tx_timeout(
self,
new_val: <bool as Specifier>::InOut,
) -> Self
pub fn with_extended_tx_timeout( self, new_val: <bool as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of extended_tx_timeout set to the given value.
#Panics
If the given value is out of bounds for extended_tx_timeout.
Sourcepub fn with_extended_tx_timeout_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_extended_tx_timeout_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of extended_tx_timeout set to the given value.
#Errors
If the given value is out of bounds for extended_tx_timeout.
Sourcepub fn set_extended_tx_timeout(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_extended_tx_timeout(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of extended_tx_timeout to the given value.
#Panics
If the given value is out of bounds for extended_tx_timeout.
Sourcepub fn set_extended_tx_timeout_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_extended_tx_timeout_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of extended_tx_timeout to the given value.
#Errors
If the given value is out of bounds for extended_tx_timeout.