[][src]Struct async_codec_lite::LengthCodec

pub struct LengthCodec<L>(_);

Implementations

impl<L> LengthCodec<L>[src]

pub const fn new() -> Self[src]

Trait Implementations

impl<L> Clone for LengthCodec<L>[src]

impl<L> Debug for LengthCodec<L>[src]

impl<L: Length> Decoder for LengthCodec<L>[src]

type Error = OverflowError

type Item = Bytes

impl<L> Default for LengthCodec<L>[src]

impl<L: Length> Encoder for LengthCodec<L>[src]

type Error = OverflowError

type Item = Bytes

impl<L> PartialEq<LengthCodec<L>> for LengthCodec<L>[src]

Auto Trait Implementations

impl<L> RefUnwindSafe for LengthCodec<L> where
    L: RefUnwindSafe
[src]

impl<L> Send for LengthCodec<L> where
    L: Send
[src]

impl<L> Sync for LengthCodec<L> where
    L: Sync
[src]

impl<L> Unpin for LengthCodec<L> where
    L: Unpin
[src]

impl<L> UnwindSafe for LengthCodec<L> where
    L: UnwindSafe
[src]

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.