pub enum DiskFormat {
Blank,
BlkFS,
InvalidBlkFS,
TooSmall,
MasterBootRecord,
GuidPartitionTable,
FatFamily,
ExtFamily,
Unknown,
}Expand description
Coarse block-device format classification used before BlkFS mount.
Variants§
Blank
Every block is zero, so compatibility mode may format BlkFS.
BlkFS
Valid AhRightOS BlkFS superblock and root metadata.
InvalidBlkFS
The BlkFS magic is present but the full superblock fails validation.
TooSmall
Device is too small for the AhRightOS BlkFS layout.
MasterBootRecord
MBR signature was detected. AhRightOS does not mount partitions yet.
GuidPartitionTable
GPT header signature was detected. AhRightOS does not mount partitions yet.
FatFamily
FAT boot-sector markers were detected. FAT is unsupported.
ExtFamily
ext-family superblock magic was detected. ext is unsupported.
Unknown
Non-empty device with no supported/recognized AhRightOS BlkFS signature.
Implementations§
Source§impl DiskFormat
impl DiskFormat
pub const fn description(self) -> &'static str
Trait Implementations§
Source§impl Clone for DiskFormat
impl Clone for DiskFormat
Source§fn clone(&self) -> DiskFormat
fn clone(&self) -> DiskFormat
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 moreimpl Copy for DiskFormat
Source§impl Debug for DiskFormat
impl Debug for DiskFormat
impl Eq for DiskFormat
Source§impl PartialEq for DiskFormat
impl PartialEq for DiskFormat
impl StructuralPartialEq for DiskFormat
Auto Trait Implementations§
impl Freeze for DiskFormat
impl RefUnwindSafe for DiskFormat
impl Send for DiskFormat
impl Sync for DiskFormat
impl Unpin for DiskFormat
impl UnsafeUnpin for DiskFormat
impl UnwindSafe for DiskFormat
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