[][src]Struct amp_async::Codec

pub struct Codec<D = Vec<(Bytes, Bytes)>> { /* fields omitted */ }

Methods

impl<D> Codec<D> where
    D: Default
[src]

pub fn new() -> Self[src]

Trait Implementations

impl<D: Default> Default for Codec<D>[src]

impl<D: PartialEq> PartialEq<Codec<D>> for Codec<D>[src]

impl<D: Debug> Debug for Codec<D>[src]

impl<D, K, V> Encoder for Codec<D> where
    D: IntoIterator<Item = (K, V)>,
    K: AsRef<[u8]>,
    V: AsRef<[u8]>, 
[src]

type Error = CodecError

The type of encoding errors. Read more

type Item = D

The type of items consumed by the Encoder

impl<D> Decoder for Codec<D> where
    D: Default + Extend<(Bytes, Bytes)>, 
[src]

type Error = CodecError

The type of unrecoverable frame decoding errors. Read more

type Item = D

The type of decoded frames.

Auto Trait Implementations

impl<D> Send for Codec<D> where
    D: Send

impl<D> Unpin for Codec<D> where
    D: Unpin

impl<D> Sync for Codec<D> where
    D: Sync

impl<D> RefUnwindSafe for Codec<D> where
    D: RefUnwindSafe

impl<D> UnwindSafe for Codec<D> where
    D: UnwindSafe

Blanket Implementations

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

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> 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]