pub struct FileSectorReader { /* private fields */ }Expand description
SectorReader backed by a file (ISO image). Seeks to lba * 2048, reads count * 2048 bytes.
Implementations§
Trait Implementations§
Source§impl SectorReader for FileSectorReader
impl SectorReader for FileSectorReader
Source§fn read_sectors(
&mut self,
lba: u32,
count: u16,
buf: &mut [u8],
_recovery: bool,
) -> Result<usize>
fn read_sectors( &mut self, lba: u32, count: u16, buf: &mut [u8], _recovery: bool, ) -> Result<usize>
Read
count sectors starting at lba into buf.
buf must be at least count * 2048 bytes.
recovery: true = full retry/reset loop (ripping), false = single attempt (verify).
File-backed readers ignore the flag.Auto Trait Implementations§
impl Freeze for FileSectorReader
impl RefUnwindSafe for FileSectorReader
impl Send for FileSectorReader
impl Sync for FileSectorReader
impl Unpin for FileSectorReader
impl UnsafeUnpin for FileSectorReader
impl UnwindSafe for FileSectorReader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more