Trait NextWithCodec

Source
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>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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

Source§

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

Source§

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

Source§

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