[][src]Struct embedded_sdmmc::Attributes

pub struct Attributes(_);

Indicates whether a directory entry is read-only, a directory, a volume label, etc.

Methods

impl Attributes[src]

pub const READ_ONLY: u8[src]

Indicates this file cannot be written.

pub const HIDDEN: u8[src]

Indicates the file is hidden.

pub const SYSTEM: u8[src]

Indicates this is a system file.

pub const VOLUME: u8[src]

Indicates this is a volume label.

pub const DIRECTORY: u8[src]

Indicates this is a directory.

pub const ARCHIVE: u8[src]

Indicates this file needs archiving (i.e. has been modified since last archived).

pub const LFN: u8[src]

This set of flags indicates the file is actually a long file name fragment.

pub fn is_read_only(self) -> bool[src]

Does this file has the read-only attribute set?

pub fn is_hidden(self) -> bool[src]

Does this file has the hidden attribute set?

pub fn is_system(self) -> bool[src]

Does this file has the system attribute set?

pub fn is_volume(self) -> bool[src]

Does this file has the volume attribute set?

pub fn is_directory(self) -> bool[src]

Does this entry point at a directory?

pub fn is_archive(self) -> bool[src]

Does this need archiving?

pub fn is_lfn(self) -> bool[src]

Is this a long file name fragment?

Trait Implementations

impl Copy for Attributes[src]

impl Clone for Attributes[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<Attributes> for Attributes[src]

impl Eq for Attributes[src]

impl Ord for Attributes[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialOrd<Attributes> for Attributes[src]

impl Debug for Attributes[src]

Auto Trait Implementations

impl Send for Attributes

impl Sync for Attributes

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]