pub struct PduStatusRecord { /* private fields */ }Implementations§
Source§impl PduStatusRecord
impl PduStatusRecord
Sourcepub const fn into_bytes(self) -> [u8; 1]
pub const fn into_bytes(self) -> [u8; 1]
Sourcepub const fn from_bytes(bytes: [u8; 1]) -> Self
pub const fn from_bytes(bytes: [u8; 1]) -> Self
Converts the given bytes directly into the bitfield struct.
Source§impl PduStatusRecord
impl PduStatusRecord
Sourcepub fn tei(&self) -> <TransferredEntityIndicator as Specifier>::InOut
pub fn tei(&self) -> <TransferredEntityIndicator as Specifier>::InOut
Returns the value of tei.
Sourcepub fn tei_or_err(
&self,
) -> Result<<TransferredEntityIndicator as Specifier>::InOut, InvalidBitPattern<<TransferredEntityIndicator as Specifier>::Bytes>>
pub fn tei_or_err( &self, ) -> Result<<TransferredEntityIndicator as Specifier>::InOut, InvalidBitPattern<<TransferredEntityIndicator as Specifier>::Bytes>>
Sourcepub fn with_tei(
self,
new_val: <TransferredEntityIndicator as Specifier>::InOut,
) -> Self
pub fn with_tei( self, new_val: <TransferredEntityIndicator as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of tei set to the given value.
§Panics
If the given value is out of bounds for tei.
Sourcepub fn with_tei_checked(
self,
new_val: <TransferredEntityIndicator as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_tei_checked( self, new_val: <TransferredEntityIndicator as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of tei set to the given value.
§Errors
If the given value is out of bounds for tei.
Sourcepub fn set_tei(
&mut self,
new_val: <TransferredEntityIndicator as Specifier>::InOut,
)
pub fn set_tei( &mut self, new_val: <TransferredEntityIndicator as Specifier>::InOut, )
Sourcepub fn set_tei_checked(
&mut self,
new_val: <TransferredEntityIndicator as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_tei_checked( &mut self, new_val: <TransferredEntityIndicator as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sourcepub fn lvc(&self) -> <LVCIndicator as Specifier>::InOut
pub fn lvc(&self) -> <LVCIndicator as Specifier>::InOut
Returns the value of lvc.
Sourcepub fn lvc_or_err(
&self,
) -> Result<<LVCIndicator as Specifier>::InOut, InvalidBitPattern<<LVCIndicator as Specifier>::Bytes>>
pub fn lvc_or_err( &self, ) -> Result<<LVCIndicator as Specifier>::InOut, InvalidBitPattern<<LVCIndicator as Specifier>::Bytes>>
Sourcepub fn with_lvc(self, new_val: <LVCIndicator as Specifier>::InOut) -> Self
pub fn with_lvc(self, new_val: <LVCIndicator as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of lvc set to the given value.
§Panics
If the given value is out of bounds for lvc.
Sourcepub fn with_lvc_checked(
self,
new_val: <LVCIndicator as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_lvc_checked( self, new_val: <LVCIndicator as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of lvc set to the given value.
§Errors
If the given value is out of bounds for lvc.
Sourcepub fn set_lvc(&mut self, new_val: <LVCIndicator as Specifier>::InOut)
pub fn set_lvc(&mut self, new_val: <LVCIndicator as Specifier>::InOut)
Sourcepub fn set_lvc_checked(
&mut self,
new_val: <LVCIndicator as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_lvc_checked( &mut self, new_val: <LVCIndicator as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sourcepub fn cei(&self) -> <CoupledExtensionIndicator as Specifier>::InOut
pub fn cei(&self) -> <CoupledExtensionIndicator as Specifier>::InOut
Returns the value of cei.
Sourcepub fn cei_or_err(
&self,
) -> Result<<CoupledExtensionIndicator as Specifier>::InOut, InvalidBitPattern<<CoupledExtensionIndicator as Specifier>::Bytes>>
pub fn cei_or_err( &self, ) -> Result<<CoupledExtensionIndicator as Specifier>::InOut, InvalidBitPattern<<CoupledExtensionIndicator as Specifier>::Bytes>>
Sourcepub fn with_cei(
self,
new_val: <CoupledExtensionIndicator as Specifier>::InOut,
) -> Self
pub fn with_cei( self, new_val: <CoupledExtensionIndicator as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of cei set to the given value.
§Panics
If the given value is out of bounds for cei.
Sourcepub fn with_cei_checked(
self,
new_val: <CoupledExtensionIndicator as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_cei_checked( self, new_val: <CoupledExtensionIndicator as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of cei set to the given value.
§Errors
If the given value is out of bounds for cei.
Sourcepub fn set_cei(
&mut self,
new_val: <CoupledExtensionIndicator as Specifier>::InOut,
)
pub fn set_cei( &mut self, new_val: <CoupledExtensionIndicator as Specifier>::InOut, )
Sourcepub fn set_cei_checked(
&mut self,
new_val: <CoupledExtensionIndicator as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_cei_checked( &mut self, new_val: <CoupledExtensionIndicator as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sourcepub fn bit4_5_or_err(
&self,
) -> Result<<B2 as Specifier>::InOut, InvalidBitPattern<<B2 as Specifier>::Bytes>>
pub fn bit4_5_or_err( &self, ) -> Result<<B2 as Specifier>::InOut, InvalidBitPattern<<B2 as Specifier>::Bytes>>
Returns the value of bit4_5.
§Errors
If the returned value contains an invalid bit pattern for bit4_5.
Sourcepub fn with_bit4_5(self, new_val: <B2 as Specifier>::InOut) -> Self
pub fn with_bit4_5(self, new_val: <B2 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of bit4_5 set to the given value.
§Panics
If the given value is out of bounds for bit4_5.
Sourcepub fn with_bit4_5_checked(
self,
new_val: <B2 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_bit4_5_checked( self, new_val: <B2 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of bit4_5 set to the given value.
§Errors
If the given value is out of bounds for bit4_5.
Sourcepub fn set_bit4_5(&mut self, new_val: <B2 as Specifier>::InOut)
pub fn set_bit4_5(&mut self, new_val: <B2 as Specifier>::InOut)
Sets the value of bit4_5 to the given value.
§Panics
If the given value is out of bounds for bit4_5.
Sourcepub fn set_bit4_5_checked(
&mut self,
new_val: <B2 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_bit4_5_checked( &mut self, new_val: <B2 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of bit4_5 to the given value.
§Errors
If the given value is out of bounds for bit4_5.
Source§impl PduStatusRecord
impl PduStatusRecord
pub fn new_zero() -> Self
pub fn get_dti(&self) -> DetonationTypeIndicator
pub fn set_dti(&mut self, dti: DetonationTypeIndicator)
pub fn get_rai(&self) -> RadioAttachedIndicator
pub fn set_rai(&mut self, rai: RadioAttachedIndicator)
pub fn get_iai(&self) -> IntercomAttachedIndicator
pub fn set_iai(&mut self, iai: IntercomAttachedIndicator)
pub fn get_fti(&self) -> FireTypeIndicator
pub fn set_fti(&mut self, fti: FireTypeIndicator)
pub fn get_ism(&self) -> PduStatusIFFSimulationMode
pub fn set_ism(&mut self, ism: PduStatusIFFSimulationMode)
pub fn get_aii(&self) -> ActiveInterrogationIndicator
pub fn set_aii(&mut self, aii: ActiveInterrogationIndicator)
pub fn to_u8(&self) -> u8
pub fn from_u8(b: u8) -> Self
Trait Implementations§
Source§impl CheckFillsUnalignedBits for PduStatusRecord
impl CheckFillsUnalignedBits for PduStatusRecord
Source§impl Clone for PduStatusRecord
impl Clone for PduStatusRecord
Source§fn clone(&self) -> PduStatusRecord
fn clone(&self) -> PduStatusRecord
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more