[][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.


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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.