#[repr(C)]
pub struct FileSystemInfo { /* private fields */ }
Expand description

System volume information

May only be obtained on the root directory’s file handle.

Please note that only the system volume’s volume label may be set using this information structure. Consider using FileSystemVolumeLabel instead.

Implementations

Create a FileSystemInfo structure

The structure will be created in-place within the provided storage buffer. The buffer must be large enough to hold the data structure, including a null-terminated UCS-2 name string.

The buffer must be correctly aligned. You can query the required alignment using the alignment() method of the Align trait that this struct implements.

Truth that the volume only supports read access

Number of bytes managed by the file system

Number of available bytes for use by the file system

Nominal block size by which files are typically grown

Volume label

Trait Implementations

Required memory alignment for this type

Calculate the offset from val necessary to make it aligned, rounding up. For example, if val is 1 and the alignment is 8, this will return 7. Returns 0 if val == 0. Read more

Round val up so that it is aligned.

Get a subslice of buf where the address of the first element is aligned. Returns None if no element of the buffer is aligned. Read more

Assert that some storage is correctly aligned for this type

Formats the value using the given formatter. Read more

Unique protocol identifier.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more