pub struct AprsPacket {
pub from: Callsign,
pub via: Vec<Via>,
pub data: AprsData,
}Fields§
§from: Callsign§via: Vec<Via>§data: AprsDataImplementations§
Source§impl AprsPacket
impl AprsPacket
pub fn decode_textual(s: &[u8]) -> Result<Self, DecodeError>
pub fn to(&self) -> Option<&Callsign>
Sourcepub fn encode_textual<W: Write>(&self, buf: &mut W) -> Result<(), EncodeError>
pub fn encode_textual<W: Write>(&self, buf: &mut W) -> Result<(), EncodeError>
Used for encoding a packet into ASCII for transmission on the internet (APRS-IS)
Sourcepub fn decode_ax25(data: &[u8]) -> Result<Self, DecodeError>
pub fn decode_ax25(data: &[u8]) -> Result<Self, DecodeError>
Used for decoding a packet received over the air (via KISS or otherwise)
Sourcepub fn encode_ax25<W: Write>(&self, buf: &mut W) -> Result<(), EncodeError>
pub fn encode_ax25<W: Write>(&self, buf: &mut W) -> Result<(), EncodeError>
Used for encoding a packet for transmission on the air (via KISS or otherwise)
Trait Implementations§
Source§impl Clone for AprsPacket
impl Clone for AprsPacket
Source§fn clone(&self) -> AprsPacket
fn clone(&self) -> AprsPacket
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 AprsPacket
impl Debug for AprsPacket
Source§impl PartialEq for AprsPacket
impl PartialEq for AprsPacket
impl StructuralPartialEq for AprsPacket
Auto Trait Implementations§
impl Freeze for AprsPacket
impl RefUnwindSafe for AprsPacket
impl Send for AprsPacket
impl Sync for AprsPacket
impl Unpin for AprsPacket
impl UnwindSafe for AprsPacket
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