[−][src]Struct nrf52_bin_logger::senders::RealSender
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]
T: Serialize,
BUFSZ: ArrayLength<u8>,
impl<T, BUFSZ> Default for RealSender<T, BUFSZ> where
T: Serialize,
BUFSZ: ArrayLength<u8>,
[src]
T: Serialize,
BUFSZ: ArrayLength<u8>,
Auto Trait Implementations
impl<T, BUFSZ> Unpin for RealSender<T, BUFSZ> where
BUFSZ: Unpin,
T: Unpin,
BUFSZ: Unpin,
T: Unpin,
impl<T, BUFSZ> Send for RealSender<T, BUFSZ> where
BUFSZ: Send,
T: Send,
BUFSZ: Send,
T: Send,
impl<T, BUFSZ> Sync for RealSender<T, BUFSZ> where
BUFSZ: Sync,
T: Sync,
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]
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self