Trait monoio_codec::AsyncDecoder
source · pub trait AsyncDecoder {
type Item;
type Error: From<Error>;
type DecodeFuture<'a>: Future<Output = Result<Option<Self::Item>, Self::Error>>
where Self: 'a;
// Required method
fn decode<IO>(&mut self, src: IO) -> Self::DecodeFuture<'_>;
}