pub struct Attributes(/* private fields */);Expand description
Indicates whether a directory entry is read-only, a directory, a volume label, etc.
Implementations§
Source§impl Attributes
 
impl Attributes
Sourcepub const ARCHIVE: u8 = 32u8
 
pub const ARCHIVE: u8 = 32u8
Indicates this file needs archiving (i.e. has been modified since last archived).
Sourcepub const LFN: u8 = 15u8
 
pub const LFN: u8 = 15u8
This set of flags indicates the file is actually a long file name fragment.
Sourcepub fn is_read_only(self) -> bool
 
pub fn is_read_only(self) -> bool
Does this file has the read-only attribute set?
Does this file has the hidden attribute set?
Sourcepub fn is_directory(self) -> bool
 
pub fn is_directory(self) -> bool
Does this entry point at a directory?
Sourcepub fn is_archive(self) -> bool
 
pub fn is_archive(self) -> bool
Does this need archiving?
Trait Implementations§
Source§impl Clone for Attributes
 
impl Clone for Attributes
Source§fn clone(&self) -> Attributes
 
fn clone(&self) -> Attributes
Returns a copy of the value. Read more
1.0.0 · 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 Attributes
 
impl Debug for Attributes
Source§impl Ord for Attributes
 
impl Ord for Attributes
Source§fn cmp(&self, other: &Attributes) -> Ordering
 
fn cmp(&self, other: &Attributes) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Attributes
 
impl PartialEq for Attributes
Source§impl PartialOrd for Attributes
 
impl PartialOrd for Attributes
impl Copy for Attributes
impl Eq for Attributes
impl StructuralPartialEq for Attributes
Auto Trait Implementations§
impl Freeze for Attributes
impl RefUnwindSafe for Attributes
impl Send for Attributes
impl Sync for Attributes
impl Unpin for Attributes
impl UnwindSafe for Attributes
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