[][src]Struct ax25::tnc::Tnc

pub struct Tnc { /* fields omitted */ }

A local or remote TNC attached to a radio, which can send and receive frames.

Methods

impl Tnc[src]

pub fn open(address: &TncAddress) -> Result<Self, TncError>[src]

Attempt to obtain a Tnc connection using the provided address.

pub fn send_frame(&self, frame: &Ax25Frame) -> Result<(), TncError>[src]

Transmit a frame on the radio. Transmission is not guaranteed even if a Ok result is returned.

pub fn receive_frame(&self) -> Result<Ax25Frame, TncError>[src]

Block to receive a frame from the radio. If you want to do this on a separate thread from sending, clone the Tnc.

Trait Implementations

impl Clone for Tnc[src]

Auto Trait Implementations

impl !RefUnwindSafe for Tnc

impl Send for Tnc

impl Sync for Tnc

impl Unpin for Tnc

impl !UnwindSafe for Tnc

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.