pub trait NextWithCodec<T> {
    type Item;
    type NextFuture<'a>: Future<Output = Option<Self::Item>>
       where Self: 'a,
             T: 'a;

    // Required method
    fn next_with<'a>(&'a mut self, codec: &'a mut T) -> Self::NextFuture<'_>;
}

Required Associated Types§

source

type Item

source

type NextFuture<'a>: Future<Output = Option<Self::Item>> where Self: 'a, T: 'a

Required Methods§

source

fn next_with<'a>(&'a mut self, codec: &'a mut T) -> Self::NextFuture<'_>

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>

§

type NextFuture<'a> where Self: 'a, Codec: 'a = impl Future<Output = Option<<Framed<IO, AnyCodec> as NextWithCodec<Codec>>::Item>> + 'a

source§

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

§

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

§

type NextFuture<'a> where Self: 'a, Codec: 'a = impl Future<Output = Option<<FramedRead<IO, AnyCodec> as NextWithCodec<Codec>>::Item>> + 'a