pub trait Write {
// Required method
fn write(&mut self, buf: &[u8]) -> Result;
// Provided methods
fn write_all_blocking(&mut self, buf: &[u8]) -> Result { ... }
fn write_all<'life0, 'life1, 'async_trait>(
&'life0 mut self,
buf: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}