pub enum Digipeater {
Callsign(Callsign, bool),
QConstruct(QConstruct, Callsign),
}Expand description
One element of the APRS via path (the digipeater list).
Variants§
Callsign(Callsign, bool)
A callsign-based digipeater path element, with optional “has-been-heard” flag (*).
QConstruct(QConstruct, Callsign)
An APRS-IS Q-construct (e.g. qAR,IGATE).
Implementations§
Source§impl Digipeater
impl Digipeater
Sourcepub fn decode_textual(input: &[u8]) -> Result<Self, AprsError>
pub fn decode_textual(input: &[u8]) -> Result<Self, AprsError>
Parse one via element from its textual bytes (without the surrounding commas).
Sourcepub fn encode_textual(&self, out: &mut Vec<u8>)
pub fn encode_textual(&self, out: &mut Vec<u8>)
Write this digipeater element in textual APRS format.
Trait Implementations§
Source§impl Clone for Digipeater
impl Clone for Digipeater
Source§fn clone(&self) -> Digipeater
fn clone(&self) -> Digipeater
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Digipeater
impl Debug for Digipeater
Source§impl Display for Digipeater
impl Display for Digipeater
Source§impl Hash for Digipeater
impl Hash for Digipeater
Source§impl PartialEq for Digipeater
impl PartialEq for Digipeater
Source§fn eq(&self, other: &Digipeater) -> bool
fn eq(&self, other: &Digipeater) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Digipeater
impl StructuralPartialEq for Digipeater
Auto Trait Implementations§
impl Freeze for Digipeater
impl RefUnwindSafe for Digipeater
impl Send for Digipeater
impl Sync for Digipeater
impl Unpin for Digipeater
impl UnsafeUnpin for Digipeater
impl UnwindSafe for Digipeater
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