[][src]Struct nrf52_bin_logger::receivers::RealReceiver

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

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

T: This is the deserializable type that can be received over the serial port. It will be deserialized using postcard, and will be Cobs decoded for framing.

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

MSGCT: This is the depth of a FIFO queue of type T. When decoded, messages will be enqueued here for reception

This sender currently blocks during transmission

Trait Implementations

impl<T, BUFSZ, MSGCT> Receiver for RealReceiver<T, BUFSZ, MSGCT> where
    BUFSZ: ArrayLength<u8>,
    MSGCT: ArrayLength<T>, 
[src]

impl<T, BUFSZ, MSGCT> Default for RealReceiver<T, BUFSZ, MSGCT> where
    BUFSZ: ArrayLength<u8>,
    MSGCT: ArrayLength<T>, 
[src]

Auto Trait Implementations

impl<T, BUFSZ, MSGCT> Send for RealReceiver<T, BUFSZ, MSGCT> where
    T: Send

impl<T, BUFSZ, MSGCT> !Sync for RealReceiver<T, BUFSZ, MSGCT>

Blanket Implementations

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

impl<T> Same for T

type Output = T

Should always be Self