pub struct StatusField { /* private fields */ }Implementations§
Source§impl StatusField
impl StatusField
Source§impl StatusField
impl StatusField
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.
Trait Implementations§
Source§impl CheckFillsUnalignedBits for StatusField
impl CheckFillsUnalignedBits for StatusField
Source§impl CheckSpecifierHasAtMost128Bits for StatusField
impl CheckSpecifierHasAtMost128Bits for StatusField
Source§impl Clone for StatusField
impl Clone for StatusField
Source§fn clone(&self) -> StatusField
fn clone(&self) -> StatusField
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatusField
impl Debug for StatusField
Source§impl From<StatusField> for [u8; 2]
impl From<StatusField> for [u8; 2]
Source§fn from(bytes: StatusField) -> Self
fn from(bytes: StatusField) -> Self
Converts to this type from the input type.
Source§impl Specifier for StatusField
impl Specifier for StatusField
Source§type Bytes = <BitCount<#[derive(Specifier, Debug, Clone, Copy)]
pub struct StatusField {
code: B8,
code_type: B3,
retry_delay: B2,
more: B1,
do_not_retry: B1,
}> as SpecifierBytes>::Bytes
type Bytes = <BitCount<#[derive(Specifier, Debug, Clone, Copy)] pub struct StatusField { code: B8, code_type: B3, retry_delay: B2, more: B1, do_not_retry: B1, }> as SpecifierBytes>::Bytes
The storage type. This is typically the smallest integer primitive that
can store all possible values of the
InOut type.Source§type InOut = StatusField
type InOut = StatusField
The interface type. This type is used by getters and setters. For
integers, this is the same as the
Bytes type; for other
types with more logical representations, like an enum or struct, this is
the enum or struct.Source§fn into_bytes(value: Self::InOut) -> Result<Self::Bytes, OutOfBounds>
fn into_bytes(value: Self::InOut) -> Result<Self::Bytes, OutOfBounds>
Converts an interface type into its storage type. Read more
Source§fn from_bytes(
bytes: Self::Bytes,
) -> Result<Self::InOut, InvalidBitPattern<Self::Bytes>>
fn from_bytes( bytes: Self::Bytes, ) -> Result<Self::InOut, InvalidBitPattern<Self::Bytes>>
Converts a storage type into its interface type. Read more
impl Copy for StatusField
Auto Trait Implementations§
impl Freeze for StatusField
impl RefUnwindSafe for StatusField
impl Send for StatusField
impl Sync for StatusField
impl Unpin for StatusField
impl UnwindSafe for StatusField
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