[][src]Struct async_codec_lite::LimitCodec

pub struct LimitCodec<C: DecoderWithSkipAhead> { /* fields omitted */ }

Implementations

impl<C> LimitCodec<C> where
    C: DecoderWithSkipAhead
[src]

pub fn new(inner: C, max_frame_size: usize) -> Self[src]

Trait Implementations

impl<C: Debug + DecoderWithSkipAhead> Debug for LimitCodec<C>[src]

impl<C> Decoder for LimitCodec<C> where
    C: DecoderWithSkipAhead
[src]

type Error = LimitError<<C as Decoder>::Error>

type Item = <C as Decoder>::Item

impl<C> Encoder for LimitCodec<C> where
    C: Encoder + DecoderWithSkipAhead
[src]

type Error = LimitError<<C as Encoder>::Error>

type Item = <C as Encoder>::Item

Auto Trait Implementations

impl<C> RefUnwindSafe for LimitCodec<C> where
    C: RefUnwindSafe,
    <C as DecoderWithSkipAhead>::Handler: RefUnwindSafe
[src]

impl<C> Send for LimitCodec<C> where
    C: Send,
    <C as DecoderWithSkipAhead>::Handler: Send
[src]

impl<C> Sync for LimitCodec<C> where
    C: Sync,
    <C as DecoderWithSkipAhead>::Handler: Sync
[src]

impl<C> Unpin for LimitCodec<C> where
    C: Unpin,
    <C as DecoderWithSkipAhead>::Handler: Unpin
[src]

impl<C> UnwindSafe for LimitCodec<C> where
    C: UnwindSafe,
    <C as DecoderWithSkipAhead>::Handler: 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, 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.