pub trait Ext4Read {
// Required method
fn read(
&mut self,
start_byte: u64,
dst: &mut [u8],
) -> Result<(), Box<dyn Error + Send + Sync + 'static>>;
}Expand description
Interface used by Ext4 to read the filesystem data from a storage
file or device.
Required Methods§
Sourcefn read(
&mut self,
start_byte: u64,
dst: &mut [u8],
) -> Result<(), Box<dyn Error + Send + Sync + 'static>>
fn read( &mut self, start_byte: u64, dst: &mut [u8], ) -> Result<(), Box<dyn Error + Send + Sync + 'static>>
Read bytes into dst, starting at start_byte.
Exactly dst.len() bytes will be read; an error will be
returned if there is not enough data to fill dst, or if the
data cannot be read for any reason.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".