pub trait Decoder: Send + Sync {
// Required method
fn decode<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
read: &'life1 mut OwnedReadHalf,
src: &'life2 mut [u8],
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}