pub struct ChangeOptions { /* private fields */ }Expand description
Implemented according to IEEE 1278.1-2012 §6.2.13 & §B.2.4
Implementations§
Source§impl ChangeOptions
impl ChangeOptions
Sourcepub const fn initial_report_or_change(self) -> bool
pub const fn initial_report_or_change(self) -> bool
Change Indicator (bit 0): true when this is the entity’s first IFF PDU, its data
changed since the last one, or it’s the first heartbeat after a PDU that had this
bit set. Every system type implements it.
Sourcepub const fn set_initial_report_or_change(&mut self, value: bool)
pub const fn set_initial_report_or_change(&mut self, value: bool)
Sets bit 0. See initial_report_or_change.
Sourcepub const fn system_specific_1(self) -> bool
pub const fn system_specific_1(self) -> bool
System-Specific Field 1 (bit 1). Its meaning depends on the system type: for
a system with a Mode 4 capability, it’s the Alternate Mode 4 Indicator; true
when present. Systems that don’t implement it set this to false.
Sourcepub const fn set_system_specific_1(&mut self, value: bool)
pub const fn set_system_specific_1(&mut self, value: bool)
Sets bit 1. See system_specific_1.
Sourcepub const fn system_specific_2(self) -> bool
pub const fn system_specific_2(self) -> bool
System-Specific Field 2 (bit 2). Its meaning depends on the system type: for
a system with a Mode C capability, it’s the Alternate Mode C Indicator; true
when present. Systems that don’t implement it set this to false.
Sourcepub const fn set_system_specific_2(&mut self, value: bool)
pub const fn set_system_specific_2(&mut self, value: bool)
Sets bit 2. See system_specific_2.
Sourcepub const fn heartbeat(self) -> bool
pub const fn heartbeat(self) -> bool
Heartbeat Indicator (bit 3): true when this IFF PDU is a heartbeat. Optional for
system types 1 to 5, required for the rest.
Sourcepub const fn set_heartbeat(&mut self, value: bool)
pub const fn set_heartbeat(&mut self, value: bool)
Sets bit 3. See heartbeat.
Sourcepub const fn transponder_interrogator(self) -> TransponderInterrogatorIndicator
pub const fn transponder_interrogator(self) -> TransponderInterrogatorIndicator
Transponder/Interrogator Indicator (bit 4) [UID 337]. Optional for system types 1 to 5, required for the rest. A combined system can be either, so the system type and name along do not say which.
Sourcepub const fn set_transponder_interrogator(
&mut self,
value: TransponderInterrogatorIndicator,
)
pub const fn set_transponder_interrogator( &mut self, value: TransponderInterrogatorIndicator, )
Sets bit 4. See transponder_interrogator.
Sourcepub const fn simulation_mode(self) -> IFFSimulationMode
pub const fn simulation_mode(self) -> IFFSimulationMode
Simulation Mode (bit 5) [UID 338]: Regeneration or Interactive. Every system type implements it.
Sourcepub const fn set_simulation_mode(&mut self, value: IFFSimulationMode)
pub const fn set_simulation_mode(&mut self, value: IFFSimulationMode)
Sets bit 5. See simulation_mode.
Sourcepub const fn interactive_capable(self) -> bool
pub const fn interactive_capable(self) -> bool
Interactive Capable (bit 6): true when the IFF system is capable of the
Interactive simulation mode.
Sourcepub const fn set_interactive_capable(&mut self, value: bool)
pub const fn set_interactive_capable(&mut self, value: bool)
Sets bit 6. See interactive_capable.
Sourcepub const fn test_mode(self) -> bool
pub const fn test_mode(self) -> bool
Test Mode (bit 7): true when the IFF system is in equipment test mode.
Sourcepub const fn set_test_mode(&mut self, value: bool)
pub const fn set_test_mode(&mut self, value: bool)
Sets bit 7. See test_mode.
Trait Implementations§
Source§impl Clone for ChangeOptions
impl Clone for ChangeOptions
impl Copy for ChangeOptions
Source§impl Debug for ChangeOptions
impl Debug for ChangeOptions
Source§impl Default for ChangeOptions
impl Default for ChangeOptions
Source§impl DekuContainerRead<'_> for ChangeOptions
impl DekuContainerRead<'_> for ChangeOptions
Source§impl DekuContainerWrite for ChangeOptions
impl DekuContainerWrite for ChangeOptions
Source§impl DekuReader<'_, Endian> for ChangeOptions
impl DekuReader<'_, Endian> for ChangeOptions
Source§impl DekuReader<'_> for ChangeOptions
impl DekuReader<'_> for ChangeOptions
Source§impl DekuUpdate for ChangeOptions
impl DekuUpdate for ChangeOptions
Source§impl DekuWriter for ChangeOptions
impl DekuWriter for ChangeOptions
Source§impl DekuWriter<Endian> for ChangeOptions
impl DekuWriter<Endian> for ChangeOptions
impl Eq for ChangeOptions
Source§impl Hash for ChangeOptions
impl Hash for ChangeOptions
Source§impl PartialEq for ChangeOptions
impl PartialEq for ChangeOptions
impl StructuralPartialEq for ChangeOptions
Source§impl TryFrom<&[u8]> for ChangeOptions
impl TryFrom<&[u8]> for ChangeOptions
Auto Trait Implementations§
impl Forget for ChangeOptions
impl Freeze for ChangeOptions
impl Move for ChangeOptions
impl RefUnwindSafe for ChangeOptions
impl Send for ChangeOptions
impl Sync for ChangeOptions
impl Unpin for ChangeOptions
impl UnsafeUnpin for ChangeOptions
impl UnwindSafe for ChangeOptions
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.