pub struct ErrorLVT { /* private fields */ }
Expand description
Error Vector Table Entry.
Implementations§
Source§impl ErrorLVT
impl ErrorLVT
Sourcepub const fn into_bytes(self) -> [u8; 16]
pub const fn into_bytes(self) -> [u8; 16]
Sourcepub const fn from_bytes(bytes: [u8; 16]) -> Self
pub const fn from_bytes(bytes: [u8; 16]) -> Self
Converts the given bytes directly into the bitfield struct.
Source§impl ErrorLVT
impl ErrorLVT
Sourcepub fn vector_or_err(
&self,
) -> Result<<u8 as Specifier>::InOut, InvalidBitPattern<<u8 as Specifier>::Bytes>>
pub fn vector_or_err( &self, ) -> Result<<u8 as Specifier>::InOut, InvalidBitPattern<<u8 as Specifier>::Bytes>>
Returns the value of vector.
#Errors
If the returned value contains an invalid bit pattern for vector.
Sourcepub fn with_vector(self, new_val: <u8 as Specifier>::InOut) -> Self
pub fn with_vector(self, new_val: <u8 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of vector set to the given value.
#Panics
If the given value is out of bounds for vector.
Sourcepub fn with_vector_checked(
self,
new_val: <u8 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_vector_checked( self, new_val: <u8 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of vector set to the given value.
#Errors
If the given value is out of bounds for vector.
Sourcepub fn set_vector(&mut self, new_val: <u8 as Specifier>::InOut)
pub fn set_vector(&mut self, new_val: <u8 as Specifier>::InOut)
Sets the value of vector to the given value.
#Panics
If the given value is out of bounds for vector.
Sourcepub fn set_vector_checked(
&mut self,
new_val: <u8 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_vector_checked( &mut self, new_val: <u8 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of vector to the given value.
#Errors
If the given value is out of bounds for vector.
Sourcepub fn delivery_status(&self) -> <B1 as Specifier>::InOut
pub fn delivery_status(&self) -> <B1 as Specifier>::InOut
Returns the value of delivery_status.
Sourcepub fn delivery_status_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn delivery_status_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of delivery_status.
#Errors
If the returned value contains an invalid bit pattern for delivery_status.
Sourcepub fn with_delivery_status(self, new_val: <B1 as Specifier>::InOut) -> Self
pub fn with_delivery_status(self, new_val: <B1 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of delivery_status set to the given value.
#Panics
If the given value is out of bounds for delivery_status.
Sourcepub fn with_delivery_status_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_delivery_status_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of delivery_status set to the given value.
#Errors
If the given value is out of bounds for delivery_status.
Sourcepub fn set_delivery_status(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set_delivery_status(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of delivery_status to the given value.
#Panics
If the given value is out of bounds for delivery_status.
Sourcepub fn set_delivery_status_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_delivery_status_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of delivery_status to the given value.
#Errors
If the given value is out of bounds for delivery_status.
Sourcepub fn mask_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn mask_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of mask.
#Errors
If the returned value contains an invalid bit pattern for mask.
Sourcepub fn with_mask(self, new_val: <B1 as Specifier>::InOut) -> Self
pub fn with_mask(self, new_val: <B1 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of mask set to the given value.
#Panics
If the given value is out of bounds for mask.
Sourcepub fn with_mask_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_mask_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of mask set to the given value.
#Errors
If the given value is out of bounds for mask.
Sourcepub fn set_mask(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set_mask(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of mask to the given value.
#Panics
If the given value is out of bounds for mask.
Sourcepub fn set_mask_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_mask_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of mask to the given value.
#Errors
If the given value is out of bounds for mask.