Skip to main content

AttrFlags

Struct AttrFlags 

Source
pub struct AttrFlags(/* private fields */);
Expand description

Portable filesystem attribute flags.

Implementations§

Source§

impl AttrFlags

Source

pub const READONLY: Self

Read-only.

Source

pub const HIDDEN: Self

Hidden from ordinary directory listings.

Source

pub const SYSTEM: Self

Used by the operating system.

Source

pub const ARCHIVE: Self

Marked for archival.

Source

pub const COMPRESSED: Self

Stored in compressed form.

Source

pub const TEMPORARY: Self

Intended for temporary storage.

Source

pub const OFFLINE: Self

Data is not immediately available.

Source

pub const NOT_CONTENT_INDEXED: Self

Excluded from content indexing.

Source

pub const IMMUTABLE: Self

Cannot be modified.

Source

pub const APPEND_ONLY: Self

May only be appended to.

Source

pub const NO_DUMP: Self

Excluded from dump-style backups.

Source

pub const NO_ATIME: Self

Does not update access time.

Source

pub const NO_COPY_ON_WRITE: Self

Disables copy-on-write behavior.

Source

pub const DIR_SYNC: Self

Directory changes are written synchronously.

Source

pub const CASEFOLD: Self

Directory uses case-insensitive lookup.

Source

pub const DATA_JOURNALING: Self

File data is journaled.

Source

pub const NO_COMPRESS: Self

File must not be compressed.

Source

pub const PROJECT_INHERIT: Self

New children inherit the project ID.

Source

pub const SECURE_DELETE: Self

Requests secure deletion.

Source

pub const SYNC: Self

Changes are written synchronously.

Source

pub const NO_TAIL_MERGE: Self

Disables tail merging.

Source

pub const TOP_DIR: Self

Directory is the top of a hierarchy.

Source

pub const UNDELETE: Self

File can be recovered after deletion.

Source

pub const DIRECT_ACCESS: Self

Supports direct-access storage.

Source

pub const EXTENT_FORMAT: Self

Uses extent-based storage.

Source

pub const OPAQUE: Self

Directory is opaque to union mounts.

Source

pub const SPARSE: Self

File uses sparse allocation.

Source

pub const fn empty() -> Self

Returns an empty set of flags.

Source

pub const fn contains(self, flag: Self) -> bool

Returns whether all bits in flag are set.

Source

pub const fn intersects(self, other: Self) -> bool

Returns whether any bits in other are set.

Source

pub const fn union(self, other: Self) -> Self

Returns the union of two flag sets.

Source

pub const fn difference(self, other: Self) -> Self

Returns these flags with the bits in other removed.

Source

pub const fn is_empty(self) -> bool

Returns whether no flags are set.

Trait Implementations§

Source§

impl Clone for AttrFlags

Source§

fn clone(&self) -> AttrFlags

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for AttrFlags

Source§

impl Debug for AttrFlags

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for AttrFlags

Source§

fn default() -> AttrFlags

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for AttrFlags

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for AttrFlags

Source§

impl PartialEq for AttrFlags

Source§

fn eq(&self, other: &AttrFlags) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for AttrFlags

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for AttrFlags

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.