#[non_exhaustive]pub enum RecoveredItem {
DeletedFile {
name: Option<String>,
inode: u64,
size: u64,
content: Vec<u8>,
content_sha256: String,
},
DeletedDirent {
name: String,
inode: u64,
},
}Expand description
One recovered item from the deleted-residue sweep (F-CARVE).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DeletedFile
A deleted file recovered from a freed-but-intact inode: free in the cg
inode bitmap, yet still carrying a valid di_mode/di_size/di_db, whose
data blocks were re-assembled. Recovery is state-dependent — this is only
possible while the freed dinode and blocks are un-reallocated.
Fields
DeletedDirent
A deleted directory entry recovered from a d_ino == 0 slot (or residual
name in a preceding entry’s reclen slack) whose d_name survives.
Trait Implementations§
Source§impl Clone for RecoveredItem
impl Clone for RecoveredItem
Source§fn clone(&self) -> RecoveredItem
fn clone(&self) -> RecoveredItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecoveredItem
impl Debug for RecoveredItem
impl Eq for RecoveredItem
Source§impl PartialEq for RecoveredItem
impl PartialEq for RecoveredItem
impl StructuralPartialEq for RecoveredItem
Auto Trait Implementations§
impl Freeze for RecoveredItem
impl RefUnwindSafe for RecoveredItem
impl Send for RecoveredItem
impl Sync for RecoveredItem
impl Unpin for RecoveredItem
impl UnsafeUnpin for RecoveredItem
impl UnwindSafe for RecoveredItem
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