[−][src]Struct async_codec_lite::LimitCodec
Implementations
impl<C> LimitCodec<C> where
C: DecoderWithSkipAhead,
[src]
C: DecoderWithSkipAhead,
Trait Implementations
impl<C: Debug + DecoderWithSkipAhead> Debug for LimitCodec<C>
[src]
impl<C> Decoder for LimitCodec<C> where
C: DecoderWithSkipAhead,
[src]
C: DecoderWithSkipAhead,
type Error = LimitError<<C as Decoder>::Error>
type Item = <C as Decoder>::Item
pub fn decode(
&mut self,
src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
[src]
&mut self,
src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
pub fn decode_eof(
&mut self,
src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
[src]
&mut self,
src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
impl<C> Encoder for LimitCodec<C> where
C: Encoder + DecoderWithSkipAhead,
[src]
C: Encoder + DecoderWithSkipAhead,
Auto Trait Implementations
impl<C> RefUnwindSafe for LimitCodec<C> where
C: RefUnwindSafe,
<C as DecoderWithSkipAhead>::Handler: RefUnwindSafe,
[src]
C: RefUnwindSafe,
<C as DecoderWithSkipAhead>::Handler: RefUnwindSafe,
impl<C> Send for LimitCodec<C> where
C: Send,
<C as DecoderWithSkipAhead>::Handler: Send,
[src]
C: Send,
<C as DecoderWithSkipAhead>::Handler: Send,
impl<C> Sync for LimitCodec<C> where
C: Sync,
<C as DecoderWithSkipAhead>::Handler: Sync,
[src]
C: Sync,
<C as DecoderWithSkipAhead>::Handler: Sync,
impl<C> Unpin for LimitCodec<C> where
C: Unpin,
<C as DecoderWithSkipAhead>::Handler: Unpin,
[src]
C: Unpin,
<C as DecoderWithSkipAhead>::Handler: Unpin,
impl<C> UnwindSafe for LimitCodec<C> where
C: UnwindSafe,
<C as DecoderWithSkipAhead>::Handler: UnwindSafe,
[src]
C: UnwindSafe,
<C as DecoderWithSkipAhead>::Handler: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,