Struct aprs_parser::Callsign
source · pub struct Callsign { /* private fields */ }Implementations§
source§impl Callsign
impl Callsign
sourcepub fn new_no_ssid(call: impl Into<String>) -> Callsign
pub fn new_no_ssid(call: impl Into<String>) -> Callsign
Create a new callsign
Note: If you need a callsign with an SSID, use new_with_ssid.
pub fn new_with_ssid( call: impl Into<String>, ssid: impl Into<String> ) -> Callsign
pub fn call(&self) -> &str
pub fn ssid(&self) -> Option<&str>
pub fn encode_textual<W: Write>(&self, heard: bool, w: &mut W) -> Result<()>
pub fn decode_textual(bytes: &[u8]) -> Option<(Self, bool)>
pub fn encode_ax25<W: Write>( &self, buf: &mut W, field: CallsignField, has_more: bool ) -> Result<(), EncodeError>
pub fn decode_ax25(data: &[u8]) -> Option<(Self, bool, bool)>
Trait Implementations§
source§impl PartialEq for Callsign
impl PartialEq for Callsign
impl Eq for Callsign
impl StructuralEq for Callsign
impl StructuralPartialEq for Callsign
Auto Trait Implementations§
impl RefUnwindSafe for Callsign
impl Send for Callsign
impl Sync for Callsign
impl Unpin for Callsign
impl UnwindSafe for Callsign
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