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§
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.