pub enum RadioMode {
Vfo,
Memory,
Call,
Wx,
}Expand description
VFO/Memory mode state for a band.
Tracked internally by the Radio struct to detect mode-incompatible
commands before they are sent. Values correspond to the VM command:
0 = VFO, 1 = Memory, 2 = Call, 3 = WX.
Variants§
Vfo
VFO (Variable Frequency Oscillator) mode — direct frequency entry.
Memory
Memory mode — operating on a stored channel.
Call
Call channel mode.
Wx
Weather channel mode (WX).
Implementations§
Source§impl RadioMode
impl RadioMode
Sourcepub const fn from_vfo_mode(mode: VfoMemoryMode) -> Self
pub const fn from_vfo_mode(mode: VfoMemoryMode) -> Self
Converts a VfoMemoryMode to a RadioMode.
Sourcepub const fn as_vfo_mode(self) -> VfoMemoryMode
pub const fn as_vfo_mode(self) -> VfoMemoryMode
Returns the VfoMemoryMode equivalent.
Trait Implementations§
impl Copy for RadioMode
impl Eq for RadioMode
impl StructuralPartialEq for RadioMode
Auto Trait Implementations§
impl Freeze for RadioMode
impl RefUnwindSafe for RadioMode
impl Send for RadioMode
impl Sync for RadioMode
impl Unpin for RadioMode
impl UnwindSafe for RadioMode
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