Trait photonio_uring::io::ReadExt
source · pub trait ReadExt {
type ReadExact<'a>: 'a + Future<Output = Result<(), Error>>
where
Self: 'a;
fn read_exact<'a>(&'a mut self, buf: &'a mut [u8]) -> Self::ReadExact<'a>;
}
Expand description
Provides extension methods for Read
.
Required Associated Types
Required Methods
sourcefn read_exact<'a>(&'a mut self, buf: &'a mut [u8]) -> Self::ReadExact<'a>
fn read_exact<'a>(&'a mut self, buf: &'a mut [u8]) -> Self::ReadExact<'a>
Reads the exact number of bytes from this object to fill buf
.