[][src]Struct nrf52_bin_logger::senders::RealSender

pub struct RealSender<T, BUFSZ> where
    BUFSZ: ArrayLength<u8>, 
{ /* fields omitted */ }

The RealSender is used when actually sending data via the serial port. RealSender has two generic parameters:

T: This is the serializable type that can be sent over the serial port. It will be serialized using postcard, and will be Cobs encoded for framing.

BUFSZ: This is the size of the buffer used to serialize the message to before sending. It must be large enough to hold a serialized + cobs encoded message of type T.

This sender currently blocks during transmission

Trait Implementations

impl<T, BUFSZ> Sender for RealSender<T, BUFSZ> where
    T: Serialize,
    BUFSZ: ArrayLength<u8>, 
[src]

impl<T, BUFSZ> Default for RealSender<T, BUFSZ> where
    T: Serialize,
    BUFSZ: ArrayLength<u8>, 
[src]

Auto Trait Implementations

impl<T, BUFSZ> Unpin for RealSender<T, BUFSZ> where
    BUFSZ: Unpin,
    T: Unpin

impl<T, BUFSZ> Send for RealSender<T, BUFSZ> where
    BUFSZ: Send,
    T: Send

impl<T, BUFSZ> Sync for RealSender<T, BUFSZ> where
    BUFSZ: Sync,
    T: Sync

Blanket Implementations

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

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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self