Enum ModemMode
#[non_exhaustive]pub enum ModemMode {
Idle,
DStar,
Dmr,
Ysf,
P25,
Nxdn,
Pocsag,
Fm,
Cw,
Lockout,
Error,
Quit,
}Expand description
Modem operating mode (see MODE_* byte constants).
Decoding is lenient: unknown bytes are mapped to ModemMode::Idle
by ModemMode::from_byte, in the spirit of the rest of the codec.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Idle
No mode active.
DStar
D-STAR digital voice.
Dmr
DMR Tier II digital voice.
Ysf
Yaesu System Fusion (C4FM).
P25
APCO Project 25.
Nxdn
NXDN digital voice.
Pocsag
POCSAG paging.
Fm
Analog FM.
Cw
Continuous-wave (CW) ID.
Lockout
Lockout (carrier-sense blocked).
Error
Error state.
Quit
Quit / shutdown.
Implementations§
Trait Implementations§
impl Copy for ModemMode
impl Eq for ModemMode
impl StructuralPartialEq for ModemMode
Auto Trait Implementations§
impl Freeze for ModemMode
impl RefUnwindSafe for ModemMode
impl Send for ModemMode
impl Sync for ModemMode
impl Unpin for ModemMode
impl UnwindSafe for ModemMode
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