pub trait NextWithCodec<T> {
    type Item;

    // Required method
    fn next_with<'a>(
        &'a mut self,
        codec: &'a mut T
    ) -> impl Future<Output = Option<Self::Item>>;
}

Required Associated Types§

Required Methods§

source

fn next_with<'a>( &'a mut self, codec: &'a mut T ) -> impl Future<Output = Option<Self::Item>>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<Codec: Decoder, IO: AsyncReadRent, AnyCodec> NextWithCodec<Codec> for Framed<IO, AnyCodec>

§

type Item = Result<<Codec as Decoder>::Item, <Codec as Decoder>::Error>

source§

impl<Codec: Decoder, IO: AsyncReadRent, AnyCodec> NextWithCodec<Codec> for FramedRead<IO, AnyCodec>

§

type Item = Result<<Codec as Decoder>::Item, <Codec as Decoder>::Error>