pub struct CallsignSlot(/* private fields */);Expand description
D-STAR active callsign slot index (0-10).
Selects which callsign from the repeater list is active.
Used by the CS CAT command.
Implementations§
Source§impl CallsignSlot
impl CallsignSlot
Sourcepub const fn new(value: u8) -> Result<Self, ValidationError>
pub const fn new(value: u8) -> Result<Self, ValidationError>
Creates a new CallsignSlot from a raw value.
§Errors
Returns ValidationError::SettingOutOfRange if value > 10.
Trait Implementations§
Source§impl Clone for CallsignSlot
impl Clone for CallsignSlot
Source§fn clone(&self) -> CallsignSlot
fn clone(&self) -> CallsignSlot
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 CallsignSlot
impl Debug for CallsignSlot
Source§impl Display for CallsignSlot
impl Display for CallsignSlot
Source§impl From<CallsignSlot> for u8
impl From<CallsignSlot> for u8
Source§fn from(slot: CallsignSlot) -> Self
fn from(slot: CallsignSlot) -> Self
Converts to this type from the input type.
Source§impl Hash for CallsignSlot
impl Hash for CallsignSlot
Source§impl PartialEq for CallsignSlot
impl PartialEq for CallsignSlot
Source§impl TryFrom<u8> for CallsignSlot
impl TryFrom<u8> for CallsignSlot
impl Copy for CallsignSlot
impl Eq for CallsignSlot
impl StructuralPartialEq for CallsignSlot
Auto Trait Implementations§
impl Freeze for CallsignSlot
impl RefUnwindSafe for CallsignSlot
impl Send for CallsignSlot
impl Sync for CallsignSlot
impl Unpin for CallsignSlot
impl UnwindSafe for CallsignSlot
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