pub struct FsStatusFlags {
pub dirty: bool,
pub io_errors: bool,
}Expand description
FAT-resident volume status flags read from FAT[1].
The FAT spec dedicates two high bits of the cluster-1 entry to volume
hygiene: one for “clean shutdown” and one for “no I/O errors during last
mount”. Both bits are cleared when something is wrong. This struct
inverts that polarity so a true value always means trouble.
FAT12 has no spare bits in its packed 12-bit entries; the spec doesn’t
define status flags for FAT12, so a FAT12 mount always reports
dirty: false, io_errors: false.
Fields§
§dirty: booltrue if the volume was not unmounted cleanly last time.
io_errors: booltrue if I/O errors were reported during the last mount.
Trait Implementations§
Source§impl Clone for FsStatusFlags
impl Clone for FsStatusFlags
Source§fn clone(&self) -> FsStatusFlags
fn clone(&self) -> FsStatusFlags
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 FsStatusFlags
Source§impl Debug for FsStatusFlags
impl Debug for FsStatusFlags
Source§impl Default for FsStatusFlags
impl Default for FsStatusFlags
Source§fn default() -> FsStatusFlags
fn default() -> FsStatusFlags
Returns the “default value” for a type. Read more
impl Eq for FsStatusFlags
Source§impl PartialEq for FsStatusFlags
impl PartialEq for FsStatusFlags
impl StructuralPartialEq for FsStatusFlags
Auto Trait Implementations§
impl Freeze for FsStatusFlags
impl RefUnwindSafe for FsStatusFlags
impl Send for FsStatusFlags
impl Sync for FsStatusFlags
impl Unpin for FsStatusFlags
impl UnsafeUnpin for FsStatusFlags
impl UnwindSafe for FsStatusFlags
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