#[non_exhaustive]pub enum GeometryError {
#[non_exhaustive] SectorSizeUnsupported {
bytes_per_sector: u32,
},
#[non_exhaustive] ClusterSizeUnsupported {
bytes_per_cluster: u32,
bytes_per_sector: u32,
},
#[non_exhaustive] ClusterTooLarge {
bytes_per_cluster: u32,
limit: u32,
},
#[non_exhaustive] BoundaryAlignUnsupported {
bytes: u32,
bytes_per_sector: u32,
},
#[non_exhaustive] VolumeTooSmall {
sectors: u64,
minimum: u64,
},
#[non_exhaustive] NoClusterHeap {
heap_at: u64,
volume_bytes: u64,
},
#[non_exhaustive] TooManyClusters {
clusters: u64,
limit: u32,
},
#[non_exhaustive] HeapTooSmall {
clusters: u32,
needed: u32,
},
}Expand description
A geometry that cannot be realized.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
#[non_exhaustive]SectorSizeUnsupported
The sector size is not one the format defines.
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]ClusterSizeUnsupported
The allocation unit is not a power of two, or is smaller than a sector.
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]ClusterTooLarge
The allocation unit exceeds what the format’s two shifts can express.
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]BoundaryAlignUnsupported
The alignment boundary is not a power of two, or is smaller than a sector.
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]VolumeTooSmall
The volume is too small to hold a filesystem at all.
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]NoClusterHeap
The regions ahead of the cluster heap leave no room for the heap.
Reached by an alignment large enough to push the heap past the end of the volume, and by a cluster small enough that its allocation table is most of the volume.
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]TooManyClusters
The cluster is small enough that the volume holds more clusters than a 32-bit number addresses.
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]HeapTooSmall
The heap is too small to hold the three residents a format writes: the allocation bitmap, the up-case table, and the root directory.
Fields
This variant is marked as non-exhaustive
Trait Implementations§
Source§impl Clone for GeometryError
impl Clone for GeometryError
Source§fn clone(&self) -> GeometryError
fn clone(&self) -> GeometryError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GeometryError
impl Debug for GeometryError
Source§impl Display for GeometryError
impl Display for GeometryError
Source§impl Error for GeometryError
impl Error for GeometryError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<GeometryError> for FormatError
impl From<GeometryError> for FormatError
Source§fn from(source: GeometryError) -> Self
fn from(source: GeometryError) -> Self
Source§impl PartialEq for GeometryError
impl PartialEq for GeometryError
Source§fn eq(&self, other: &GeometryError) -> bool
fn eq(&self, other: &GeometryError) -> bool
self and other values to be equal, and is used by ==.