Module options

Module options 

Source
Expand description

扩展

Structs§

FsStats
FsStats contains some common stats about a file system.

Enums§

FileAccess
This will override the read, write, and append flags on the OpenOptions structure. This method provides fine-grained control over the permissions to read, write and append data, attributes (like hidden and system), and extended attributes.
FileAttribute
文件属性
FileCustom
安全
FileSecurity
安全
FileShare
共享

Traits§

FileExt
Extension trait for std::fs::File which provides allocation, duplication and locking methods.
FileOptionsExt
Extension trait for std::fs::OpenOptions which provides allocation, duplication and locking methods.

Functions§

allocation_granularity
Returns the filesystem’s disk space allocation granularity in bytes. The provided path may be for any file in the filesystem.
available_space
Returns the available space in bytes to non-priveleged users in the file system containing the provided path.
free_space
Returns the number of free bytes in the file system containing the provided path.
lock_contended_error
Returns the error that a call to a try lock method on a contended file will return.
statvfs
Get the stats of the file system containing the provided path.
total_space
Returns the total space in bytes in the file system containing the provided path.