[][src]Struct conjoiner_engine::Cobs

pub struct Cobs<B> where
    B: SerFlavor + IndexMut<usize, Output = u8>, 
{ /* fields omitted */ }

The Cobs flavor implements Consistent Overhead Byte Stuffing on the serialized data. The output of this flavor includes the termination/sentinel byte of 0x00.

This protocol is useful when sending data over a serial interface without framing such as a UART

Methods

impl<B> Cobs<B> where
    B: SerFlavor + IndexMut<usize, Output = u8>, 
[src]

pub fn try_new(bee: B) -> Result<Cobs<B>, Error>[src]

Create a new Cobs modifier Flavor. If there is insufficient space to push the leading header byte, the method will return an Error

Trait Implementations

impl<'a, B> SerFlavor for Cobs<B> where
    B: SerFlavor + IndexMut<usize, Output = u8>, 
[src]

type Output = <B as SerFlavor>::Output

The Output type is what this flavor "resolves" to when the serialization is complete. For storage flavors, this is typically a concrete type. For modification flavors, this is typically a generic parameter for the storage flavor they are wrapped around. Read more

Auto Trait Implementations

impl<B> Send for Cobs<B> where
    B: Send

impl<B> Sync for Cobs<B> where
    B: Sync

impl<B> Unpin for Cobs<B> where
    B: Unpin

impl<B> UnwindSafe for Cobs<B> where
    B: UnwindSafe

impl<B> RefUnwindSafe for Cobs<B> where
    B: RefUnwindSafe

Blanket Implementations

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

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

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

type Error = !

The type returned in the event of a conversion error.

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