pub struct ChannelEntry {
pub number: u16,
pub name: String,
pub flash: FlashChannel,
pub used: bool,
pub lockout: bool,
}Expand description
A single memory channel combining frequency data, display name, and flags.
Fields§
§number: u16Channel number (0–999).
name: StringUser-assigned display name (up to 16 bytes, ASCII).
flash: FlashChannelThe 40-byte flash channel data (frequency, mode, tone, offset, etc.).
Uses the flash memory encoding (FlashChannel) which differs from
the CAT wire format (crate::types::ChannelMemory). Key differences
include the mode field (8 modes vs 4) and structured tone/duplex bit
packing.
used: boolWhether this channel slot contains valid data.
A channel is considered unused when its RX frequency is
0x00000000 or 0xFFFFFFFF.
lockout: boolChannel lockout state from the flags table.
Trait Implementations§
Source§impl Clone for ChannelEntry
impl Clone for ChannelEntry
Source§fn clone(&self) -> ChannelEntry
fn clone(&self) -> ChannelEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelEntry
impl Debug for ChannelEntry
Source§impl PartialEq for ChannelEntry
impl PartialEq for ChannelEntry
impl Eq for ChannelEntry
impl StructuralPartialEq for ChannelEntry
Auto Trait Implementations§
impl Freeze for ChannelEntry
impl RefUnwindSafe for ChannelEntry
impl Send for ChannelEntry
impl Sync for ChannelEntry
impl Unpin for ChannelEntry
impl UnwindSafe for ChannelEntry
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