pub struct PduStatus { /* private fields */ }Expand description
Implemented according to IEEE 1278.1-2012 §6.2.67
Implementations§
Source§impl PduStatus
impl PduStatus
Sourcepub const fn tei(self) -> TransferredEntityIndicator
pub const fn tei(self) -> TransferredEntityIndicator
Transferred Entity Indicator (bit 0) [UID 301]: whether a simulation other than the one in the PDU’s primary Entity ID owns the entity
Sourcepub const fn set_tei(&mut self, tei: TransferredEntityIndicator)
pub const fn set_tei(&mut self, tei: TransferredEntityIndicator)
Sets bit 0. See tei.
Sourcepub const fn lvc(self) -> LVCIndicator
pub const fn lvc(self) -> LVCIndicator
LVC Indicator (bits 1 and 2) [UID 302]: whether the PDU’s data relates to a live, virtual or constructive entity.
Sourcepub const fn set_lvc(&mut self, lvc: LVCIndicator)
pub const fn set_lvc(&mut self, lvc: LVCIndicator)
Sets bits 1 and 2. See lvc.
Sourcepub const fn cei(self) -> CoupledExtensionIndicator
pub const fn cei(self) -> CoupledExtensionIndicator
Coupled Extension Indicator (bit 3) [UID 303]: whether the PDU is coupled with an Attribute PDU.
Sourcepub const fn set_cei(&mut self, cei: CoupledExtensionIndicator)
pub const fn set_cei(&mut self, cei: CoupledExtensionIndicator)
Sets bit 3. See cei.
Sourcepub const fn fti(self) -> FireTypeIndicator
pub const fn fti(self) -> FireTypeIndicator
Fire Type Indicator (bit 4) [UID 304], for the Fire PDU: whether a munition or an expendable was fired.
Sourcepub const fn set_fti(&mut self, fti: FireTypeIndicator)
pub const fn set_fti(&mut self, fti: FireTypeIndicator)
Sets bit 4, leaving bit 5 as it is. See fti.
Sourcepub const fn dti(self) -> Option<DetonationTypeIndicator>
pub const fn dti(self) -> Option<DetonationTypeIndicator>
Detonation Type Indicator (bits 4 and 5) [UID 305], for the Detonation PDU:
what detonated. None if the bits hold 3, which isn’t defined.
Sourcepub const fn set_dti(&mut self, dti: DetonationTypeIndicator)
pub const fn set_dti(&mut self, dti: DetonationTypeIndicator)
Sets bits 4 and 5. See dti.
Sourcepub const fn rai(self) -> Option<RadioAttachedIndicator>
pub const fn rai(self) -> Option<RadioAttachedIndicator>
Radio Attached Indicator (bits 4 and 5) [UID 306], for the Transmitter, Signal
and Receiver PDUs: whether the radio is attached to an entity or object. None if
the bits hold 3, which isn’t defined.
Sourcepub const fn set_rai(&mut self, rai: RadioAttachedIndicator)
pub const fn set_rai(&mut self, rai: RadioAttachedIndicator)
Sets bits 4 and 5. See rai.
Sourcepub const fn iai(self) -> Option<IntercomAttachedIndicator>
pub const fn iai(self) -> Option<IntercomAttachedIndicator>
Intercom Attached Indicator (bits 4 and 5) [UID 307], for the Intercom Signal
and Intercom Control PDUs: whether the intercom is attached to an entity or object.
None if the bits hold 3, which isn’t defined.
Sourcepub const fn set_iai(&mut self, iai: IntercomAttachedIndicator)
pub const fn set_iai(&mut self, iai: IntercomAttachedIndicator)
Sets bits 4 and 5. See iai.
Sourcepub const fn ism(self) -> PduStatusIFFSimulationMode
pub const fn ism(self) -> PduStatusIFFSimulationMode
IFF Simulation Mode (bit 4) [UID 308], for the IFF PDU. It matches the
Simulation Mode in the PDU’s ChangeOptions record.
Sourcepub const fn set_ism(&mut self, ism: PduStatusIFFSimulationMode)
pub const fn set_ism(&mut self, ism: PduStatusIFFSimulationMode)
Sets bit 4, leaving bit 5 as it is. See ism.
Sourcepub const fn aii(self) -> ActiveInterrogationIndicator
pub const fn aii(self) -> ActiveInterrogationIndicator
Active Interrogation Indicator (bit 5) [UID 389], for the IFF PDU: whether the PDU is an active interrogation by an interrogator in Regeneration mode.
Sourcepub const fn set_aii(&mut self, aii: ActiveInterrogationIndicator)
pub const fn set_aii(&mut self, aii: ActiveInterrogationIndicator)
Sets bit 5, leaving bit 4 as it is. See aii.
Trait Implementations§
impl Copy for PduStatus
Source§impl DekuContainerRead<'_> for PduStatus
impl DekuContainerRead<'_> for PduStatus
Source§impl DekuContainerWrite for PduStatus
impl DekuContainerWrite for PduStatus
Source§impl DekuReader<'_, Endian> for PduStatus
impl DekuReader<'_, Endian> for PduStatus
Source§impl DekuReader<'_> for PduStatus
impl DekuReader<'_> for PduStatus
Source§impl DekuUpdate for PduStatus
impl DekuUpdate for PduStatus
Source§impl DekuWriter for PduStatus
impl DekuWriter for PduStatus
Source§impl DekuWriter<Endian> for PduStatus
impl DekuWriter<Endian> for PduStatus
impl Eq for PduStatus
impl StructuralPartialEq for PduStatus
Auto Trait Implementations§
impl Forget for PduStatus
impl Freeze for PduStatus
impl Move for PduStatus
impl RefUnwindSafe for PduStatus
impl Send for PduStatus
impl Sync for PduStatus
impl Unpin for PduStatus
impl UnsafeUnpin for PduStatus
impl UnwindSafe for PduStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.