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