FileSystemAttributes

Struct FileSystemAttributes 

Source
pub struct FileSystemAttributes { /* private fields */ }
Expand description

File system attributes.

Used in FileFsAttributeInformation

Implementations§

Source§

impl FileSystemAttributes

Source

pub const fn new() -> Self

Returns an instance with zero initialized data.

Source§

impl FileSystemAttributes

Source

pub const fn into_bytes(self) -> [u8; 4]

Returns the underlying bits.

§Layout

The returned byte array is layed out in the same way as described here.

Source

pub const fn from_bytes(bytes: [u8; 4]) -> Self

Converts the given bytes directly into the bitfield struct.

Source§

impl FileSystemAttributes

Returns the value of case_sensitive_search. The file system supports case-sensitive file names when looking up (searching for) file names in a directory.

Source

pub fn case_sensitive_search_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of case_sensitive_search.

#Errors

If the returned value contains an invalid bit pattern for case_sensitive_search. The file system supports case-sensitive file names when looking up (searching for) file names in a directory.

Returns a copy of the bitfield with the value of case_sensitive_search set to the given value.

#Panics

If the given value is out of bounds for case_sensitive_search. The file system supports case-sensitive file names when looking up (searching for) file names in a directory.

Source

pub fn with_case_sensitive_search_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of case_sensitive_search set to the given value.

#Errors

If the given value is out of bounds for case_sensitive_search. The file system supports case-sensitive file names when looking up (searching for) file names in a directory.

Sets the value of case_sensitive_search to the given value.

#Panics

If the given value is out of bounds for case_sensitive_search. The file system supports case-sensitive file names when looking up (searching for) file names in a directory.

Source

pub fn set_case_sensitive_search_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of case_sensitive_search to the given value.

#Errors

If the given value is out of bounds for case_sensitive_search. The file system supports case-sensitive file names when looking up (searching for) file names in a directory.

Source

pub fn case_preserved_names(&self) -> <bool as Specifier>::InOut

Returns the value of case_preserved_names. The file system preserves the case of file names when it places a name on disk.

Source

pub fn case_preserved_names_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of case_preserved_names.

#Errors

If the returned value contains an invalid bit pattern for case_preserved_names. The file system preserves the case of file names when it places a name on disk.

Source

pub fn with_case_preserved_names( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of case_preserved_names set to the given value.

#Panics

If the given value is out of bounds for case_preserved_names. The file system preserves the case of file names when it places a name on disk.

Source

pub fn with_case_preserved_names_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of case_preserved_names set to the given value.

#Errors

If the given value is out of bounds for case_preserved_names. The file system preserves the case of file names when it places a name on disk.

Source

pub fn set_case_preserved_names(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of case_preserved_names to the given value.

#Panics

If the given value is out of bounds for case_preserved_names. The file system preserves the case of file names when it places a name on disk.

Source

pub fn set_case_preserved_names_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of case_preserved_names to the given value.

#Errors

If the given value is out of bounds for case_preserved_names. The file system preserves the case of file names when it places a name on disk.

Source

pub fn unicode_on_disk(&self) -> <bool as Specifier>::InOut

Returns the value of unicode_on_disk. The file system supports Unicode in file and directory names. This flag applies only to file and directory names; the file system neither restricts nor interprets the bytes of data within a file.

Source

pub fn unicode_on_disk_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of unicode_on_disk.

#Errors

If the returned value contains an invalid bit pattern for unicode_on_disk. The file system supports Unicode in file and directory names. This flag applies only to file and directory names; the file system neither restricts nor interprets the bytes of data within a file.

Source

pub fn with_unicode_on_disk(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of unicode_on_disk set to the given value.

#Panics

If the given value is out of bounds for unicode_on_disk. The file system supports Unicode in file and directory names. This flag applies only to file and directory names; the file system neither restricts nor interprets the bytes of data within a file.

Source

pub fn with_unicode_on_disk_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of unicode_on_disk set to the given value.

#Errors

If the given value is out of bounds for unicode_on_disk. The file system supports Unicode in file and directory names. This flag applies only to file and directory names; the file system neither restricts nor interprets the bytes of data within a file.

Source

pub fn set_unicode_on_disk(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of unicode_on_disk to the given value.

#Panics

If the given value is out of bounds for unicode_on_disk. The file system supports Unicode in file and directory names. This flag applies only to file and directory names; the file system neither restricts nor interprets the bytes of data within a file.

Source

pub fn set_unicode_on_disk_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of unicode_on_disk to the given value.

#Errors

If the given value is out of bounds for unicode_on_disk. The file system supports Unicode in file and directory names. This flag applies only to file and directory names; the file system neither restricts nor interprets the bytes of data within a file.

Source

pub fn persistent_acls(&self) -> <bool as Specifier>::InOut

Returns the value of persistent_acls. The file system preserves and enforces access control lists (ACLs).

Source

pub fn persistent_acls_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of persistent_acls.

#Errors

If the returned value contains an invalid bit pattern for persistent_acls. The file system preserves and enforces access control lists (ACLs).

Source

pub fn with_persistent_acls(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of persistent_acls set to the given value.

#Panics

If the given value is out of bounds for persistent_acls. The file system preserves and enforces access control lists (ACLs).

Source

pub fn with_persistent_acls_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of persistent_acls set to the given value.

#Errors

If the given value is out of bounds for persistent_acls. The file system preserves and enforces access control lists (ACLs).

Source

pub fn set_persistent_acls(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of persistent_acls to the given value.

#Panics

If the given value is out of bounds for persistent_acls. The file system preserves and enforces access control lists (ACLs).

Source

pub fn set_persistent_acls_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of persistent_acls to the given value.

#Errors

If the given value is out of bounds for persistent_acls. The file system preserves and enforces access control lists (ACLs).

Source

pub fn file_compression(&self) -> <bool as Specifier>::InOut

Returns the value of file_compression. The file volume supports file-based compression. This flag is incompatible with the volume_is_compressed flag.

Source

pub fn file_compression_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of file_compression.

#Errors

If the returned value contains an invalid bit pattern for file_compression. The file volume supports file-based compression. This flag is incompatible with the volume_is_compressed flag.

Source

pub fn with_file_compression(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of file_compression set to the given value.

#Panics

If the given value is out of bounds for file_compression. The file volume supports file-based compression. This flag is incompatible with the volume_is_compressed flag.

Source

pub fn with_file_compression_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of file_compression set to the given value.

#Errors

If the given value is out of bounds for file_compression. The file volume supports file-based compression. This flag is incompatible with the volume_is_compressed flag.

Source

pub fn set_file_compression(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of file_compression to the given value.

#Panics

If the given value is out of bounds for file_compression. The file volume supports file-based compression. This flag is incompatible with the volume_is_compressed flag.

Source

pub fn set_file_compression_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of file_compression to the given value.

#Errors

If the given value is out of bounds for file_compression. The file volume supports file-based compression. This flag is incompatible with the volume_is_compressed flag.

Source

pub fn volume_quotas(&self) -> <bool as Specifier>::InOut

Returns the value of volume_quotas. The file system supports per-user quotas.

Source

pub fn volume_quotas_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of volume_quotas.

#Errors

If the returned value contains an invalid bit pattern for volume_quotas. The file system supports per-user quotas.

Source

pub fn with_volume_quotas(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of volume_quotas set to the given value.

#Panics

If the given value is out of bounds for volume_quotas. The file system supports per-user quotas.

Source

pub fn with_volume_quotas_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of volume_quotas set to the given value.

#Errors

If the given value is out of bounds for volume_quotas. The file system supports per-user quotas.

Source

pub fn set_volume_quotas(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of volume_quotas to the given value.

#Panics

If the given value is out of bounds for volume_quotas. The file system supports per-user quotas.

Source

pub fn set_volume_quotas_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of volume_quotas to the given value.

#Errors

If the given value is out of bounds for volume_quotas. The file system supports per-user quotas.

Source

pub fn supports_sparse_files(&self) -> <bool as Specifier>::InOut

Returns the value of supports_sparse_files. The file system supports sparse files.

Source

pub fn supports_sparse_files_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of supports_sparse_files.

#Errors

If the returned value contains an invalid bit pattern for supports_sparse_files. The file system supports sparse files.

Source

pub fn with_supports_sparse_files( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of supports_sparse_files set to the given value.

#Panics

If the given value is out of bounds for supports_sparse_files. The file system supports sparse files.

Source

pub fn with_supports_sparse_files_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of supports_sparse_files set to the given value.

#Errors

If the given value is out of bounds for supports_sparse_files. The file system supports sparse files.

Source

pub fn set_supports_sparse_files(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of supports_sparse_files to the given value.

#Panics

If the given value is out of bounds for supports_sparse_files. The file system supports sparse files.

Source

pub fn set_supports_sparse_files_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of supports_sparse_files to the given value.

#Errors

If the given value is out of bounds for supports_sparse_files. The file system supports sparse files.

Source

pub fn supports_reparse_points(&self) -> <bool as Specifier>::InOut

Returns the value of supports_reparse_points. The file system supports reparse points.

Source

pub fn supports_reparse_points_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of supports_reparse_points.

#Errors

If the returned value contains an invalid bit pattern for supports_reparse_points. The file system supports reparse points.

Source

pub fn with_supports_reparse_points( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of supports_reparse_points set to the given value.

#Panics

If the given value is out of bounds for supports_reparse_points. The file system supports reparse points.

Source

pub fn with_supports_reparse_points_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of supports_reparse_points set to the given value.

#Errors

If the given value is out of bounds for supports_reparse_points. The file system supports reparse points.

Source

pub fn set_supports_reparse_points( &mut self, new_val: <bool as Specifier>::InOut, )

Sets the value of supports_reparse_points to the given value.

#Panics

If the given value is out of bounds for supports_reparse_points. The file system supports reparse points.

Source

pub fn set_supports_reparse_points_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of supports_reparse_points to the given value.

#Errors

If the given value is out of bounds for supports_reparse_points. The file system supports reparse points.

Source

pub fn supports_remote_storage(&self) -> <bool as Specifier>::InOut

Returns the value of supports_remote_storage. The file system supports remote storage.

Source

pub fn supports_remote_storage_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of supports_remote_storage.

#Errors

If the returned value contains an invalid bit pattern for supports_remote_storage. The file system supports remote storage.

Source

pub fn with_supports_remote_storage( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of supports_remote_storage set to the given value.

#Panics

If the given value is out of bounds for supports_remote_storage. The file system supports remote storage.

Source

pub fn with_supports_remote_storage_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of supports_remote_storage set to the given value.

#Errors

If the given value is out of bounds for supports_remote_storage. The file system supports remote storage.

Source

pub fn set_supports_remote_storage( &mut self, new_val: <bool as Specifier>::InOut, )

Sets the value of supports_remote_storage to the given value.

#Panics

If the given value is out of bounds for supports_remote_storage. The file system supports remote storage.

Source

pub fn set_supports_remote_storage_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of supports_remote_storage to the given value.

#Errors

If the given value is out of bounds for supports_remote_storage. The file system supports remote storage.

Source

pub fn volume_is_compressed(&self) -> <bool as Specifier>::InOut

Returns the value of volume_is_compressed. The specified volume is a compressed volume. This flag is incompatible with the file_compression flag.

Source

pub fn volume_is_compressed_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of volume_is_compressed.

#Errors

If the returned value contains an invalid bit pattern for volume_is_compressed. The specified volume is a compressed volume. This flag is incompatible with the file_compression flag.

Source

pub fn with_volume_is_compressed( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of volume_is_compressed set to the given value.

#Panics

If the given value is out of bounds for volume_is_compressed. The specified volume is a compressed volume. This flag is incompatible with the file_compression flag.

Source

pub fn with_volume_is_compressed_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of volume_is_compressed set to the given value.

#Errors

If the given value is out of bounds for volume_is_compressed. The specified volume is a compressed volume. This flag is incompatible with the file_compression flag.

Source

pub fn set_volume_is_compressed(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of volume_is_compressed to the given value.

#Panics

If the given value is out of bounds for volume_is_compressed. The specified volume is a compressed volume. This flag is incompatible with the file_compression flag.

Source

pub fn set_volume_is_compressed_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of volume_is_compressed to the given value.

#Errors

If the given value is out of bounds for volume_is_compressed. The specified volume is a compressed volume. This flag is incompatible with the file_compression flag.

Source

pub fn supports_object_ids(&self) -> <bool as Specifier>::InOut

Returns the value of supports_object_ids. The file system supports object identifiers.

Source

pub fn supports_object_ids_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of supports_object_ids.

#Errors

If the returned value contains an invalid bit pattern for supports_object_ids. The file system supports object identifiers.

Source

pub fn with_supports_object_ids( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of supports_object_ids set to the given value.

#Panics

If the given value is out of bounds for supports_object_ids. The file system supports object identifiers.

Source

pub fn with_supports_object_ids_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of supports_object_ids set to the given value.

#Errors

If the given value is out of bounds for supports_object_ids. The file system supports object identifiers.

Source

pub fn set_supports_object_ids(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of supports_object_ids to the given value.

#Panics

If the given value is out of bounds for supports_object_ids. The file system supports object identifiers.

Source

pub fn set_supports_object_ids_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of supports_object_ids to the given value.

#Errors

If the given value is out of bounds for supports_object_ids. The file system supports object identifiers.

Source

pub fn supports_encryption(&self) -> <bool as Specifier>::InOut

Returns the value of supports_encryption. The file system supports the Encrypted File System (EFS).

Source

pub fn supports_encryption_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of supports_encryption.

#Errors

If the returned value contains an invalid bit pattern for supports_encryption. The file system supports the Encrypted File System (EFS).

Source

pub fn with_supports_encryption( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of supports_encryption set to the given value.

#Panics

If the given value is out of bounds for supports_encryption. The file system supports the Encrypted File System (EFS).

Source

pub fn with_supports_encryption_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of supports_encryption set to the given value.

#Errors

If the given value is out of bounds for supports_encryption. The file system supports the Encrypted File System (EFS).

Source

pub fn set_supports_encryption(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of supports_encryption to the given value.

#Panics

If the given value is out of bounds for supports_encryption. The file system supports the Encrypted File System (EFS).

Source

pub fn set_supports_encryption_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of supports_encryption to the given value.

#Errors

If the given value is out of bounds for supports_encryption. The file system supports the Encrypted File System (EFS).

Source

pub fn named_streams(&self) -> <bool as Specifier>::InOut

Returns the value of named_streams. The file system supports named streams.

Source

pub fn named_streams_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of named_streams.

#Errors

If the returned value contains an invalid bit pattern for named_streams. The file system supports named streams.

Source

pub fn with_named_streams(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of named_streams set to the given value.

#Panics

If the given value is out of bounds for named_streams. The file system supports named streams.

Source

pub fn with_named_streams_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of named_streams set to the given value.

#Errors

If the given value is out of bounds for named_streams. The file system supports named streams.

Source

pub fn set_named_streams(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of named_streams to the given value.

#Panics

If the given value is out of bounds for named_streams. The file system supports named streams.

Source

pub fn set_named_streams_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of named_streams to the given value.

#Errors

If the given value is out of bounds for named_streams. The file system supports named streams.

Source

pub fn read_only_volume(&self) -> <bool as Specifier>::InOut

Returns the value of read_only_volume. If set, the volume has been mounted in read-only mode.

Source

pub fn read_only_volume_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of read_only_volume.

#Errors

If the returned value contains an invalid bit pattern for read_only_volume. If set, the volume has been mounted in read-only mode.

Source

pub fn with_read_only_volume(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of read_only_volume set to the given value.

#Panics

If the given value is out of bounds for read_only_volume. If set, the volume has been mounted in read-only mode.

Source

pub fn with_read_only_volume_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of read_only_volume set to the given value.

#Errors

If the given value is out of bounds for read_only_volume. If set, the volume has been mounted in read-only mode.

Source

pub fn set_read_only_volume(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of read_only_volume to the given value.

#Panics

If the given value is out of bounds for read_only_volume. If set, the volume has been mounted in read-only mode.

Source

pub fn set_read_only_volume_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of read_only_volume to the given value.

#Errors

If the given value is out of bounds for read_only_volume. If set, the volume has been mounted in read-only mode.

Source

pub fn sequential_write_once(&self) -> <bool as Specifier>::InOut

Returns the value of sequential_write_once. The underlying volume is write once.

Source

pub fn sequential_write_once_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of sequential_write_once.

#Errors

If the returned value contains an invalid bit pattern for sequential_write_once. The underlying volume is write once.

Source

pub fn with_sequential_write_once( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of sequential_write_once set to the given value.

#Panics

If the given value is out of bounds for sequential_write_once. The underlying volume is write once.

Source

pub fn with_sequential_write_once_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of sequential_write_once set to the given value.

#Errors

If the given value is out of bounds for sequential_write_once. The underlying volume is write once.

Source

pub fn set_sequential_write_once(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of sequential_write_once to the given value.

#Panics

If the given value is out of bounds for sequential_write_once. The underlying volume is write once.

Source

pub fn set_sequential_write_once_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of sequential_write_once to the given value.

#Errors

If the given value is out of bounds for sequential_write_once. The underlying volume is write once.

Source

pub fn supports_transactions(&self) -> <bool as Specifier>::InOut

Returns the value of supports_transactions. The volume supports transactions.

Source

pub fn supports_transactions_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of supports_transactions.

#Errors

If the returned value contains an invalid bit pattern for supports_transactions. The volume supports transactions.

Source

pub fn with_supports_transactions( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of supports_transactions set to the given value.

#Panics

If the given value is out of bounds for supports_transactions. The volume supports transactions.

Source

pub fn with_supports_transactions_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of supports_transactions set to the given value.

#Errors

If the given value is out of bounds for supports_transactions. The volume supports transactions.

Source

pub fn set_supports_transactions(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of supports_transactions to the given value.

#Panics

If the given value is out of bounds for supports_transactions. The volume supports transactions.

Source

pub fn set_supports_transactions_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of supports_transactions to the given value.

#Errors

If the given value is out of bounds for supports_transactions. The volume supports transactions.

Returns the value of supports_hard_links. The file system supports hard linking files.

Returns the value of supports_hard_links.

#Errors

If the returned value contains an invalid bit pattern for supports_hard_links. The file system supports hard linking files.

Returns a copy of the bitfield with the value of supports_hard_links set to the given value.

#Panics

If the given value is out of bounds for supports_hard_links. The file system supports hard linking files.

Returns a copy of the bitfield with the value of supports_hard_links set to the given value.

#Errors

If the given value is out of bounds for supports_hard_links. The file system supports hard linking files.

Sets the value of supports_hard_links to the given value.

#Panics

If the given value is out of bounds for supports_hard_links. The file system supports hard linking files.

Sets the value of supports_hard_links to the given value.

#Errors

If the given value is out of bounds for supports_hard_links. The file system supports hard linking files.

Source

pub fn supports_extended_attributes(&self) -> <bool as Specifier>::InOut

Returns the value of supports_extended_attributes. The file system persistently stores Extended Attribute information per file.

Source

pub fn supports_extended_attributes_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of supports_extended_attributes.

#Errors

If the returned value contains an invalid bit pattern for supports_extended_attributes. The file system persistently stores Extended Attribute information per file.

Source

pub fn with_supports_extended_attributes( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of supports_extended_attributes set to the given value.

#Panics

If the given value is out of bounds for supports_extended_attributes. The file system persistently stores Extended Attribute information per file.

Source

pub fn with_supports_extended_attributes_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of supports_extended_attributes set to the given value.

#Errors

If the given value is out of bounds for supports_extended_attributes. The file system persistently stores Extended Attribute information per file.

Source

pub fn set_supports_extended_attributes( &mut self, new_val: <bool as Specifier>::InOut, )

Sets the value of supports_extended_attributes to the given value.

#Panics

If the given value is out of bounds for supports_extended_attributes. The file system persistently stores Extended Attribute information per file.

Source

pub fn set_supports_extended_attributes_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of supports_extended_attributes to the given value.

#Errors

If the given value is out of bounds for supports_extended_attributes. The file system persistently stores Extended Attribute information per file.

Source

pub fn supports_open_by_file_id(&self) -> <bool as Specifier>::InOut

Returns the value of supports_open_by_file_id. The file system supports opening a file by FileID or ObjectID.

Source

pub fn supports_open_by_file_id_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of supports_open_by_file_id.

#Errors

If the returned value contains an invalid bit pattern for supports_open_by_file_id. The file system supports opening a file by FileID or ObjectID.

Source

pub fn with_supports_open_by_file_id( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of supports_open_by_file_id set to the given value.

#Panics

If the given value is out of bounds for supports_open_by_file_id. The file system supports opening a file by FileID or ObjectID.

Source

pub fn with_supports_open_by_file_id_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of supports_open_by_file_id set to the given value.

#Errors

If the given value is out of bounds for supports_open_by_file_id. The file system supports opening a file by FileID or ObjectID.

Source

pub fn set_supports_open_by_file_id( &mut self, new_val: <bool as Specifier>::InOut, )

Sets the value of supports_open_by_file_id to the given value.

#Panics

If the given value is out of bounds for supports_open_by_file_id. The file system supports opening a file by FileID or ObjectID.

Source

pub fn set_supports_open_by_file_id_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of supports_open_by_file_id to the given value.

#Errors

If the given value is out of bounds for supports_open_by_file_id. The file system supports opening a file by FileID or ObjectID.

Source

pub fn supports_usn_journal(&self) -> <bool as Specifier>::InOut

Returns the value of supports_usn_journal. The file system implements a USN change journal.

Source

pub fn supports_usn_journal_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of supports_usn_journal.

#Errors

If the returned value contains an invalid bit pattern for supports_usn_journal. The file system implements a USN change journal.

Source

pub fn with_supports_usn_journal( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of supports_usn_journal set to the given value.

#Panics

If the given value is out of bounds for supports_usn_journal. The file system implements a USN change journal.

Source

pub fn with_supports_usn_journal_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of supports_usn_journal set to the given value.

#Errors

If the given value is out of bounds for supports_usn_journal. The file system implements a USN change journal.

Source

pub fn set_supports_usn_journal(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of supports_usn_journal to the given value.

#Panics

If the given value is out of bounds for supports_usn_journal. The file system implements a USN change journal.

Source

pub fn set_supports_usn_journal_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of supports_usn_journal to the given value.

#Errors

If the given value is out of bounds for supports_usn_journal. The file system implements a USN change journal.

Source

pub fn support_integrity_streams(&self) -> <bool as Specifier>::InOut

Returns the value of support_integrity_streams. The file system supports integrity streams.

Source

pub fn support_integrity_streams_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of support_integrity_streams.

#Errors

If the returned value contains an invalid bit pattern for support_integrity_streams. The file system supports integrity streams.

Source

pub fn with_support_integrity_streams( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of support_integrity_streams set to the given value.

#Panics

If the given value is out of bounds for support_integrity_streams. The file system supports integrity streams.

Source

pub fn with_support_integrity_streams_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of support_integrity_streams set to the given value.

#Errors

If the given value is out of bounds for support_integrity_streams. The file system supports integrity streams.

Source

pub fn set_support_integrity_streams( &mut self, new_val: <bool as Specifier>::InOut, )

Sets the value of support_integrity_streams to the given value.

#Panics

If the given value is out of bounds for support_integrity_streams. The file system supports integrity streams.

Source

pub fn set_support_integrity_streams_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of support_integrity_streams to the given value.

#Errors

If the given value is out of bounds for support_integrity_streams. The file system supports integrity streams.

Source

pub fn supports_block_refcounting(&self) -> <bool as Specifier>::InOut

Returns the value of supports_block_refcounting. The file system supports sharing logical clusters between files on the same volume. The file system reallocates on writes to shared clusters. Indicates that FSCTL_DUPLICATE_EXTENTS_TO_FILE is a supported operation.

Source

pub fn supports_block_refcounting_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of supports_block_refcounting.

#Errors

If the returned value contains an invalid bit pattern for supports_block_refcounting. The file system supports sharing logical clusters between files on the same volume. The file system reallocates on writes to shared clusters. Indicates that FSCTL_DUPLICATE_EXTENTS_TO_FILE is a supported operation.

Source

pub fn with_supports_block_refcounting( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of supports_block_refcounting set to the given value.

#Panics

If the given value is out of bounds for supports_block_refcounting. The file system supports sharing logical clusters between files on the same volume. The file system reallocates on writes to shared clusters. Indicates that FSCTL_DUPLICATE_EXTENTS_TO_FILE is a supported operation.

Source

pub fn with_supports_block_refcounting_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of supports_block_refcounting set to the given value.

#Errors

If the given value is out of bounds for supports_block_refcounting. The file system supports sharing logical clusters between files on the same volume. The file system reallocates on writes to shared clusters. Indicates that FSCTL_DUPLICATE_EXTENTS_TO_FILE is a supported operation.

Source

pub fn set_supports_block_refcounting( &mut self, new_val: <bool as Specifier>::InOut, )

Sets the value of supports_block_refcounting to the given value.

#Panics

If the given value is out of bounds for supports_block_refcounting. The file system supports sharing logical clusters between files on the same volume. The file system reallocates on writes to shared clusters. Indicates that FSCTL_DUPLICATE_EXTENTS_TO_FILE is a supported operation.

Source

pub fn set_supports_block_refcounting_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of supports_block_refcounting to the given value.

#Errors

If the given value is out of bounds for supports_block_refcounting. The file system supports sharing logical clusters between files on the same volume. The file system reallocates on writes to shared clusters. Indicates that FSCTL_DUPLICATE_EXTENTS_TO_FILE is a supported operation.

Source

pub fn supports_sparse_vdl(&self) -> <bool as Specifier>::InOut

Returns the value of supports_sparse_vdl. The file system tracks whether each cluster of a file contains valid data (either from explicit file writes or automatic zeros) or invalid data (has not yet been written to or zeroed). File systems that use Sparse VDL do not store a valid data length and do not require that valid data be contiguous within a file.

Source

pub fn supports_sparse_vdl_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of supports_sparse_vdl.

#Errors

If the returned value contains an invalid bit pattern for supports_sparse_vdl. The file system tracks whether each cluster of a file contains valid data (either from explicit file writes or automatic zeros) or invalid data (has not yet been written to or zeroed). File systems that use Sparse VDL do not store a valid data length and do not require that valid data be contiguous within a file.

Source

pub fn with_supports_sparse_vdl( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of supports_sparse_vdl set to the given value.

#Panics

If the given value is out of bounds for supports_sparse_vdl. The file system tracks whether each cluster of a file contains valid data (either from explicit file writes or automatic zeros) or invalid data (has not yet been written to or zeroed). File systems that use Sparse VDL do not store a valid data length and do not require that valid data be contiguous within a file.

Source

pub fn with_supports_sparse_vdl_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of supports_sparse_vdl set to the given value.

#Errors

If the given value is out of bounds for supports_sparse_vdl. The file system tracks whether each cluster of a file contains valid data (either from explicit file writes or automatic zeros) or invalid data (has not yet been written to or zeroed). File systems that use Sparse VDL do not store a valid data length and do not require that valid data be contiguous within a file.

Source

pub fn set_supports_sparse_vdl(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of supports_sparse_vdl to the given value.

#Panics

If the given value is out of bounds for supports_sparse_vdl. The file system tracks whether each cluster of a file contains valid data (either from explicit file writes or automatic zeros) or invalid data (has not yet been written to or zeroed). File systems that use Sparse VDL do not store a valid data length and do not require that valid data be contiguous within a file.

Source

pub fn set_supports_sparse_vdl_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of supports_sparse_vdl to the given value.

#Errors

If the given value is out of bounds for supports_sparse_vdl. The file system tracks whether each cluster of a file contains valid data (either from explicit file writes or automatic zeros) or invalid data (has not yet been written to or zeroed). File systems that use Sparse VDL do not store a valid data length and do not require that valid data be contiguous within a file.

Trait Implementations§

Source§

impl BinRead for FileSystemAttributes

Source§

type Args<'__binrw_generated_args_lifetime> = ()

The type used for the args parameter of read_args() and read_options(). Read more
Source§

fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>

Read Self from the reader using the given Endian and arguments. Read more
Source§

fn read<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self: ReadEndian, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments. Read more
Source§

fn read_be<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments and assuming big-endian byte order. Read more
Source§

fn read_le<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments and assuming little-endian byte order. Read more
Source§

fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read T from the reader assuming native-endian byte order. Read more
Source§

fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek, Self: ReadEndian,

Read Self from the reader using the given arguments. Read more
Source§

fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read Self from the reader, assuming big-endian byte order, using the given arguments. Read more
Source§

fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read Self from the reader, assuming little-endian byte order, using the given arguments. Read more
Source§

fn read_ne_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read T from the reader, assuming native-endian byte order, using the given arguments. Read more
Source§

impl BinWrite for FileSystemAttributes

Source§

type Args<'__binrw_generated_args_lifetime> = ()

The type used for the args parameter of write_args() and write_options(). Read more
Source§

fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<()>

Write Self to the writer using the given Endian and arguments. Read more
Source§

fn write<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write + Seek, Self: WriteEndian, Self::Args<'a>: for<'a> Required,

Write Self to the writer using default arguments. Read more
Source§

fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write + Seek, Self::Args<'a>: for<'a> Required,

Write Self to the writer assuming big-endian byte order. Read more
Source§

fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write + Seek, Self::Args<'a>: for<'a> Required,

Write Self to the writer assuming little-endian byte order. Read more
Source§

fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write + Seek, Self::Args<'a>: for<'a> Required,

Write Self to the writer assuming native-endian byte order. Read more
Source§

fn write_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
where W: Write + Seek, Self: WriteEndian,

Write Self to the writer using the given arguments. Read more
Source§

fn write_be_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
where W: Write + Seek,

Write Self to the writer, assuming big-endian byte order, using the given arguments. Read more
Source§

fn write_le_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
where W: Write + Seek,

Write Self to the writer, assuming little-endian byte order, using the given arguments. Read more
Source§

fn write_ne_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
where W: Write + Seek,

Write Self to the writer, assuming native-endian byte order, using the given arguments. Read more
Source§

impl CheckTotalSizeMultipleOf8 for FileSystemAttributes

Source§

type Size = TotalSize<[(); 0]>

Source§

impl Clone for FileSystemAttributes

Source§

fn clone(&self) -> FileSystemAttributes

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for FileSystemAttributes

Source§

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

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

impl Default for FileSystemAttributes

Source§

fn default() -> FileSystemAttributes

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

impl PartialEq for FileSystemAttributes

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl ReadEndian for FileSystemAttributes

Source§

const ENDIAN: EndianKind = binrw::meta::EndianKind::None

The endianness of the type.
Source§

impl WriteEndian for FileSystemAttributes

Source§

const ENDIAN: EndianKind = binrw::meta::EndianKind::None

The endianness of the type.
Source§

impl Copy for FileSystemAttributes

Source§

impl Eq for FileSystemAttributes

Source§

impl StructuralPartialEq for FileSystemAttributes

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> 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> 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V