usecore::{future::Future,pin::Pin};/// The `Read` trait allows for reading bytes from a source asynchronously.
pubtraitRead<'sess> {/// The error type returned by [`Read::read`].
typeError;/// Pull some bytes from this source into the specified buffer
/// asynchronously, eventually returning how many bytes were read.
fnread(&'sessmutself,
buf:&'sessmut [u8],
)->Pin<Box<dyn Future<Output = Result<usize, Self::Error>>+Send+'sess>>;}