pub struct Flags { /* private fields */ }
Expand description
Windows volume file system flags.
Reference: https://docs.microsoft.com/en-us/windows/desktop/api/fileapi/nf-fileapi-getvolumeinformationw
Implementations§
Source§impl Flags
impl Flags
Sourcepub const FILE_CASE_PRESERVED_NAMES: Flags
pub const FILE_CASE_PRESERVED_NAMES: Flags
The specified volume supports preserved case of file names when it places a name on disk.
Sourcepub const FILE_CASE_SENSITIVE_SEARCH: Flags
pub const FILE_CASE_SENSITIVE_SEARCH: Flags
The specified volume supports case-sensitive file names.
Sourcepub const FILE_DAX_VOLUME: Flags
pub const FILE_DAX_VOLUME: Flags
The specified volume is a direct access (DAX) volume.
Sourcepub const FILE_FILE_COMPRESSION: Flags
pub const FILE_FILE_COMPRESSION: Flags
The specified volume supports file-based compression.
Sourcepub const FILE_NAMED_STREAMS: Flags
pub const FILE_NAMED_STREAMS: Flags
The specified volume supports named streams.
Sourcepub const FILE_PERSISTENT_ACLS: Flags
pub const FILE_PERSISTENT_ACLS: Flags
The specified volume preserves and enforces access control lists (ACL).
Sourcepub const FILE_READ_ONLY_VOLUME: Flags
pub const FILE_READ_ONLY_VOLUME: Flags
The specified volume is read-only.
Sourcepub const FILE_SEQUENTIAL_WRITE_ONCE: Flags
pub const FILE_SEQUENTIAL_WRITE_ONCE: Flags
The specified volume supports a single sequential write.
Sourcepub const FILE_SUPPORTS_ENCRYPTION: Flags
pub const FILE_SUPPORTS_ENCRYPTION: Flags
The specified volume supports the Encrypted File System (EFS).
Sourcepub const FILE_SUPPORTS_EXTENDED_ATTRIBUTES: Flags
pub const FILE_SUPPORTS_EXTENDED_ATTRIBUTES: Flags
The specified volume supports extended attributes.
Sourcepub const FILE_SUPPORTS_HARD_LINKS: Flags
pub const FILE_SUPPORTS_HARD_LINKS: Flags
The specified volume supports hard links. For more information, see Hard Links and Junctions.
Sourcepub const FILE_SUPPORTS_OBJECT_IDS: Flags
pub const FILE_SUPPORTS_OBJECT_IDS: Flags
The specified volume supports object identifiers.
Sourcepub const FILE_SUPPORTS_OPEN_BY_FILE_ID: Flags
pub const FILE_SUPPORTS_OPEN_BY_FILE_ID: Flags
The file system supports open by FileID.
Sourcepub const FILE_SUPPORTS_REPARSE_POINTS: Flags
pub const FILE_SUPPORTS_REPARSE_POINTS: Flags
The specified volume supports reparse points.
Sourcepub const FILE_SUPPORTS_SPARSE_FILES: Flags
pub const FILE_SUPPORTS_SPARSE_FILES: Flags
The specified volume supports sparse files.
Sourcepub const FILE_SUPPORTS_TRANSACTIONS: Flags
pub const FILE_SUPPORTS_TRANSACTIONS: Flags
The specified volume supports transactions.
Sourcepub const FILE_SUPPORTS_USN_JOURNAL: Flags
pub const FILE_SUPPORTS_USN_JOURNAL: Flags
The specified volume supports update sequence number (USN) journals.
Sourcepub const FILE_UNICODE_ON_DISK: Flags
pub const FILE_UNICODE_ON_DISK: Flags
The specified volume supports Unicode in file names as they appear on disk.
Sourcepub const FILE_VOLUME_IS_COMPRESSED: Flags
pub const FILE_VOLUME_IS_COMPRESSED: Flags
The specified volume is a compressed volume, for example, a DoubleSpace volume.
Sourcepub const FILE_VOLUME_QUOTAS: Flags
pub const FILE_VOLUME_QUOTAS: Flags
The specified volume supports disk quotas.
Sourcepub fn from_bits(bits: DWORD) -> Option<Flags>
pub fn from_bits(bits: DWORD) -> 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: DWORD) -> Flags
pub const fn from_bits_truncate(bits: DWORD) -> Flags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: DWORD) -> Flags
pub const unsafe fn from_bits_unchecked(bits: DWORD) -> 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.