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§
impl Eq for Callsign
impl StructuralPartialEq for Callsign
Auto Trait Implementations§
impl Freeze for Callsign
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