[][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 Clone for Attributes[src]

impl Copy for Attributes[src]

impl Debug for Attributes[src]

impl Eq for Attributes[src]

impl Ord for Attributes[src]

impl PartialEq<Attributes> for Attributes[src]

impl PartialOrd<Attributes> for Attributes[src]

impl StructuralEq for Attributes[src]

impl StructuralPartialEq for Attributes[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.