pub trait Write: Send {
type Error: Error + Send + Sync + 'static;
// Required method
fn write(
&mut self,
buf: &[u8]
) -> impl Future<Output = Result<usize, Self::Error>> + Send;
}
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.