Ext4Read

Trait Ext4Read 

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl Ext4Read for Vec<u8>

Source§

fn read( &mut self, start_byte: u64, dst: &mut [u8], ) -> Result<(), Box<dyn Error + Send + Sync + 'static>>

Source§

impl Ext4Read for File

Available on crate feature std only.
Source§

fn read( &mut self, start_byte: u64, dst: &mut [u8], ) -> Result<(), Box<dyn Error + Send + Sync + 'static>>

Implementors§