pub enum ScanItem<'a> {
Data {
offset: u64,
bytes: &'a [u8],
},
Unreadable {
start: u64,
end: u64,
},
}Expand description
One step of a scan, in region order.
Variants§
Data
Bytes read from the region, starting at region offset offset.
Fields
Unreadable
The device could not read [start, end) (whole sectors: the
device’s logical blocks where known, else store blocks). The scan
continues after it; the range is not “end of data”.
Trait Implementations§
impl<'a> Eq for ScanItem<'a>
impl<'a> StructuralPartialEq for ScanItem<'a>
Auto Trait Implementations§
impl<'a> Forget for ScanItem<'a>
impl<'a> Freeze for ScanItem<'a>
impl<'a> Move for ScanItem<'a>
impl<'a> RefUnwindSafe for ScanItem<'a>
impl<'a> Send for ScanItem<'a>
impl<'a> Sync for ScanItem<'a>
impl<'a> Unpin for ScanItem<'a>
impl<'a> UnsafeUnpin for ScanItem<'a>
impl<'a> UnwindSafe for ScanItem<'a>
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