Skip to main content

VerificationIssue

Enum VerificationIssue 

Source
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

§path: String

File or directory path containing the loop

§cluster: u32

The cluster where the loop was detected

§

CrossLinkedCluster

Two or more files share the same cluster (cross-linked).

Fields

§cluster: u32

The shared cluster number

§paths: Vec<String>

Paths of files sharing this cluster

§

OrphanedChain

A cluster chain exists in the FAT but is not referenced by any file.

Fields

§start_cluster: u32

Starting cluster of the orphaned chain

§chain_length: u32

Length of the chain in clusters

§

SizeMismatch

The recorded file size doesn’t match the cluster chain length.

Fields

§path: String

File path

§recorded_size: usize

Size recorded in the directory entry

§chain_size: usize

Size implied by the cluster chain

§

InvalidFirstCluster

A directory entry points to an invalid cluster.

Fields

§path: String

File or directory path

§cluster: u32

The invalid cluster number

§

BadClusterInChain

The cluster chain contains a bad cluster marker.

Fields

§path: String

File or directory path

§position: u32

Position in the chain where the bad cluster was found

§cluster: u32

The bad cluster number

§

InvalidEntryName

A directory entry has an invalid name.

Fields

§parent_path: String

Parent directory path

§raw_name: [u8; 11]

Raw bytes of the invalid name

§

LostClusters

Lost clusters (used in FAT but not referenced by any file).

Fields

§count: u32

Number of lost clusters

Trait Implementations§

Source§

impl Clone for VerificationIssue

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for VerificationIssue

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for VerificationIssue

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for VerificationIssue

Source§

impl PartialEq for VerificationIssue

Source§

fn eq(&self, other: &VerificationIssue) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for VerificationIssue

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> MaybePod for T

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.