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;
}
Expand description
Read the data from the stream.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.