[−][src]Struct ax25::frame::Ax25Frame
A strongly-typed representation of a single AX.25 frame.
Fields
source: Address
Sending station
destination: Address
Destination station
route: Vec<RouteEntry>
The route the frame has taken/will take according to repeater entries in the address field
command_or_response: Option<CommandResponse>
AX.25 2.0-compliant stations will indicate in every frame whether it is a command or a response, as part of the address field.
content: FrameContent
Various content depending on the packet type
Methods
impl Ax25Frame
[src]
pub fn info_string_lossy(&self) -> Option<String>
[src]
Returns a UTF-8 string that is a "best effort" at displaying the information
content of this frame. Returns None if there is no information field present.
Most applications will need to work with the Vec
pub fn from_bytes(bytes: &[u8]) -> Result<Ax25Frame, FrameParseError>
[src]
Parse raw bytes into an Ax25Frame if possible.
pub fn to_bytes(&self) -> Vec<u8>
[src]
Encode an Ax25Frame struct as raw bytes for transmission
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Ax25Frame
impl Send for Ax25Frame
impl Sync for Ax25Frame
impl Unpin for Ax25Frame
impl UnwindSafe for Ax25Frame
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,