pub struct DigitalSquelchCode(/* private fields */);Expand description
Validated D-STAR digital squelch code (0-99).
The TH-D75 uses a numeric code in the range 0-99 for digital code squelch on D-STAR. Only frames with a matching code open the audio.
Implementations§
Source§impl DigitalSquelchCode
impl DigitalSquelchCode
Sourcepub const fn new(code: u8) -> Result<Self, ValidationError>
pub const fn new(code: u8) -> Result<Self, ValidationError>
Creates a new digital squelch code.
§Errors
Returns ValidationError::DigitalSquelchCodeOutOfRange if code > 99.
Trait Implementations§
Source§impl Clone for DigitalSquelchCode
impl Clone for DigitalSquelchCode
Source§fn clone(&self) -> DigitalSquelchCode
fn clone(&self) -> DigitalSquelchCode
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 DigitalSquelchCode
impl Debug for DigitalSquelchCode
Source§impl Default for DigitalSquelchCode
impl Default for DigitalSquelchCode
Source§fn default() -> DigitalSquelchCode
fn default() -> DigitalSquelchCode
Returns the “default value” for a type. Read more
Source§impl Display for DigitalSquelchCode
impl Display for DigitalSquelchCode
Source§impl Hash for DigitalSquelchCode
impl Hash for DigitalSquelchCode
Source§impl PartialEq for DigitalSquelchCode
impl PartialEq for DigitalSquelchCode
impl Copy for DigitalSquelchCode
impl Eq for DigitalSquelchCode
impl StructuralPartialEq for DigitalSquelchCode
Auto Trait Implementations§
impl Freeze for DigitalSquelchCode
impl RefUnwindSafe for DigitalSquelchCode
impl Send for DigitalSquelchCode
impl Sync for DigitalSquelchCode
impl Unpin for DigitalSquelchCode
impl UnwindSafe for DigitalSquelchCode
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