pub struct Flags { /* private fields */ }
Expand description
Partition mount flags.
Implementations§
Source§impl Flags
impl Flags
Sourcepub const MNT_RDONLY: Flags = _
pub const MNT_RDONLY: Flags = _
Read only filesystem
Sourcepub const MNT_SYNCHRONOUS: Flags = _
pub const MNT_SYNCHRONOUS: Flags = _
File system written synchronously
Sourcepub const MNT_NOEXEC: Flags = _
pub const MNT_NOEXEC: Flags = _
Can’t exec from filesystem
Sourcepub const MNT_NOSUID: Flags = _
pub const MNT_NOSUID: Flags = _
Don’t honor setuid
bits on fs
Sourcepub const MNT_CPROTECT: Flags = _
pub const MNT_CPROTECT: Flags = _
File system supports content protection
Sourcepub const MNT_EXPORTED: Flags = _
pub const MNT_EXPORTED: Flags = _
File system is exported
Sourcepub const MNT_QUARANTINE: Flags = _
pub const MNT_QUARANTINE: Flags = _
File system is quarantined
Sourcepub const MNT_ROOTFS: Flags = _
pub const MNT_ROOTFS: Flags = _
Identifies the root filesystem
Sourcepub const MNT_DOVOLFS: Flags = _
pub const MNT_DOVOLFS: Flags = _
FS supports volfs
(deprecated flag in Mac OS X 10.5)
Sourcepub const MNT_DONTBROWSE: Flags = _
pub const MNT_DONTBROWSE: Flags = _
File system is not appropriate path to user data
Sourcepub const MNT_IGNORE_OWNERSHIP: Flags = _
pub const MNT_IGNORE_OWNERSHIP: Flags = _
VFS will ignore ownership information on filesystem objects
Sourcepub const MNT_AUTOMOUNTED: Flags = _
pub const MNT_AUTOMOUNTED: Flags = _
Filesystem was mounted by automounter
Sourcepub const MNT_JOURNALED: Flags = _
pub const MNT_JOURNALED: Flags = _
Filesystem is journaled
Sourcepub const MNT_NOUSERXATTR: Flags = _
pub const MNT_NOUSERXATTR: Flags = _
Don’t allow user extended attributes
Sourcepub const MNT_DEFWRITE: Flags = _
pub const MNT_DEFWRITE: Flags = _
Filesystem should defer writes
Sourcepub const MNT_MULTILABEL: Flags = _
pub const MNT_MULTILABEL: Flags = _
MAC support for individual labels
Sourcepub const MNT_NOATIME: Flags = _
pub const MNT_NOATIME: Flags = _
Disable update of file access time
Sourcepub const MNT_UPDATE: Flags = _
pub const MNT_UPDATE: Flags = _
Not a real mount, just an update
Sourcepub const MNT_NOBLOCK: Flags = _
pub const MNT_NOBLOCK: Flags = _
Don’t block unmount if not responding
Sourcepub const MNT_RELOAD: Flags = _
pub const MNT_RELOAD: Flags = _
Reload filesystem data
Sourcepub fn from_bits(bits: c_uint) -> Option<Flags>
pub fn from_bits(bits: c_uint) -> Option<Flags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: c_uint) -> Flags
pub const fn from_bits_truncate(bits: c_uint) -> Flags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: c_uint) -> Flags
pub const unsafe fn from_bits_unchecked(bits: c_uint) -> Flags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: Flags) -> bool
pub const fn intersects(&self, other: Flags) -> bool
Returns true
if there are flags common to both self
and other
.
Trait Implementations§
Source§impl BitAndAssign for Flags
impl BitAndAssign for Flags
Source§fn bitand_assign(&mut self, other: Flags)
fn bitand_assign(&mut self, other: Flags)
Disables all flags disabled in the set.
Source§impl BitOrAssign for Flags
impl BitOrAssign for Flags
Source§fn bitor_assign(&mut self, other: Flags)
fn bitor_assign(&mut self, other: Flags)
Adds the set of flags.
Source§impl BitXorAssign for Flags
impl BitXorAssign for Flags
Source§fn bitxor_assign(&mut self, other: Flags)
fn bitxor_assign(&mut self, other: Flags)
Toggles the set of flags.
Source§impl Extend<Flags> for Flags
impl Extend<Flags> for Flags
Source§fn extend<T: IntoIterator<Item = Flags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Flags>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Source§impl FromIterator<Flags> for Flags
impl FromIterator<Flags> for Flags
Source§impl Ord for Flags
impl Ord for Flags
Source§impl PartialOrd for Flags
impl PartialOrd for Flags
Source§impl SubAssign for Flags
impl SubAssign for Flags
Source§fn sub_assign(&mut self, other: Flags)
fn sub_assign(&mut self, other: Flags)
Disables all flags enabled in the set.
impl Copy for Flags
impl Eq for Flags
impl StructuralPartialEq for Flags
Auto Trait Implementations§
impl Freeze for Flags
impl RefUnwindSafe for Flags
impl Send for Flags
impl Sync for Flags
impl Unpin for Flags
impl UnwindSafe for Flags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)