usecore::future::Future;/// A stream that can be read from asynchronously.
pubtraitAsyncRead{/// The error returned by [`read`](Self::read).
typeError;/// Reads into a given buffer, returns the number of read bytes.
////// Returns `0` if the stream is closed (or if the buffer is empty).
////// # Errors
////// Returns an error if reading fails.
////// # Cancel safety
////// Implementations in this crate are cancel safe.
fnread<'a>(&'amutself,
buf:&'amut [u8],
)-> impl Future<Output = Result<usize, Self::Error>>;}