pub struct AttrFlags(/* private fields */);Expand description
Portable filesystem attribute flags.
Implementations§
Source§impl AttrFlags
impl AttrFlags
Sourcepub const COMPRESSED: Self
pub const COMPRESSED: Self
Stored in compressed form.
Sourcepub const NOT_CONTENT_INDEXED: Self
pub const NOT_CONTENT_INDEXED: Self
Excluded from content indexing.
Sourcepub const APPEND_ONLY: Self
pub const APPEND_ONLY: Self
May only be appended to.
Sourcepub const NO_COPY_ON_WRITE: Self
pub const NO_COPY_ON_WRITE: Self
Disables copy-on-write behavior.
Sourcepub const DATA_JOURNALING: Self
pub const DATA_JOURNALING: Self
File data is journaled.
Sourcepub const NO_COMPRESS: Self
pub const NO_COMPRESS: Self
File must not be compressed.
Sourcepub const PROJECT_INHERIT: Self
pub const PROJECT_INHERIT: Self
New children inherit the project ID.
Sourcepub const SECURE_DELETE: Self
pub const SECURE_DELETE: Self
Requests secure deletion.
Sourcepub const NO_TAIL_MERGE: Self
pub const NO_TAIL_MERGE: Self
Disables tail merging.
Sourcepub const DIRECT_ACCESS: Self
pub const DIRECT_ACCESS: Self
Supports direct-access storage.
Sourcepub const EXTENT_FORMAT: Self
pub const EXTENT_FORMAT: Self
Uses extent-based storage.
Sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns whether any bits in other are set.
Sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns these flags with the bits in other removed.
Trait Implementations§
impl Copy for AttrFlags
Source§impl<'de> Deserialize<'de> for AttrFlags
impl<'de> Deserialize<'de> for AttrFlags
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AttrFlags
impl StructuralPartialEq for AttrFlags
Auto Trait Implementations§
impl Freeze for AttrFlags
impl RefUnwindSafe for AttrFlags
impl Send for AttrFlags
impl Sync for AttrFlags
impl Unpin for AttrFlags
impl UnsafeUnpin for AttrFlags
impl UnwindSafe for AttrFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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