[−][src]Struct ax25::tnc::Tnc
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]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,