pub enum VerificationIssue {
ClusterLoop {
path: String,
cluster: u32,
},
CrossLinkedCluster {
cluster: u32,
paths: Vec<String>,
},
OrphanedChain {
start_cluster: u32,
chain_length: u32,
},
SizeMismatch {
path: String,
recorded_size: usize,
chain_size: usize,
},
InvalidFirstCluster {
path: String,
cluster: u32,
},
BadClusterInChain {
path: String,
position: u32,
cluster: u32,
},
InvalidEntryName {
parent_path: String,
raw_name: [u8; 11],
},
LostClusters {
count: u32,
},
}Expand description
Types of verification issues that can be detected.
Variants§
ClusterLoop
A cluster chain contains a loop (revisits a cluster).
Fields
CrossLinkedCluster
Two or more files share the same cluster (cross-linked).
OrphanedChain
A cluster chain exists in the FAT but is not referenced by any file.
Fields
SizeMismatch
The recorded file size doesn’t match the cluster chain length.
Fields
InvalidFirstCluster
A directory entry points to an invalid cluster.
BadClusterInChain
The cluster chain contains a bad cluster marker.
Fields
InvalidEntryName
A directory entry has an invalid name.
LostClusters
Lost clusters (used in FAT but not referenced by any file).
Trait Implementations§
Source§impl Clone for VerificationIssue
impl Clone for VerificationIssue
Source§fn clone(&self) -> VerificationIssue
fn clone(&self) -> VerificationIssue
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 VerificationIssue
impl Debug for VerificationIssue
Source§impl Display for VerificationIssue
impl Display for VerificationIssue
impl Eq for VerificationIssue
Source§impl PartialEq for VerificationIssue
impl PartialEq for VerificationIssue
impl StructuralPartialEq for VerificationIssue
Auto Trait Implementations§
impl Freeze for VerificationIssue
impl RefUnwindSafe for VerificationIssue
impl Send for VerificationIssue
impl Sync for VerificationIssue
impl Unpin for VerificationIssue
impl UnsafeUnpin for VerificationIssue
impl UnwindSafe for VerificationIssue
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