Struct ax25::frame::Ax25Frame [] [src]

pub struct Ax25Frame {
    pub source: Address,
    pub destination: Address,
    pub route: Vec<RouteEntry>,
    pub command_or_response: Option<CommandResponse>,
    pub content: FrameContent,
}

A strongly-typed representation of a single AX.25 frame.

Fields

The route the frame has taken/will take according to repeater entries in the address field

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.

Methods

impl Ax25Frame
[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 info directly.

Parse raw bytes into an Ax25Frame if possible.

Encode an Ax25Frame struct as raw bytes for transmission

Trait Implementations

impl Debug for Ax25Frame
[src]

Formats the value using the given formatter.

impl Display for Ax25Frame
[src]

Formats the value using the given formatter. Read more