Crate cap_fs_ext

Source
Expand description

Extension traits for Dir

Structs§

AmbientAuthority
Instances of this AmbientAuthority type serve to indicate that the ambient_authority function has been called, indicating that the user has explicitly opted into using ambient authority.
Metadata
Re-export these to allow them to be used with Reuse. Metadata information about a file.
OpenOptions
Re-export these to allow them to be used with Reuse. Options and flags which can be used to configure how a file is opened.

Enums§

AccessType
Access modes for use with [DirExt::access].
FollowSymlinks
Re-export these to allow them to be used with Reuse. Should symlinks be followed in the last component of a path?
SystemTimeSpec
A value for specifying a time.

Traits§

DirEntryExt
Extension trait for DirEntry.
DirExt
Extension trait for Dir.
FileTypeExt
Extension trait for FileType.
IsFileReadWrite
A trait for the is_file_read_write function for File types.
MetadataExt
Extension trait for Metadata.
OpenOptionsExt
Re-export these to allow them to be used with Reuse. Unix-specific extensions to [fs::OpenOptions].
OpenOptionsFollowExt
Extension trait for cap_primitives::fs::OpenOptions which adds follow, a function for controlling whether a symlink in the last component of a path is followed.
OpenOptionsMaybeDirExt
Extension trait for cap_primitives::fs::OpenOptions which adds maybe_dir, a function for controlling whether an open should attempt to succeed on a directory. On Posix-ish platforms, opening a directory always succeeds, but on Windows, opening a directory needs this option.
OpenOptionsSyncExt
Extension trait for cap_primitives::fs::OpenOptions which adds sync, dsync, rsync, and nonblock functions for controlling various I/O modes for the opened file.
OsMetadataExt
Re-export these to allow them to be used with Reuse. Unix-specific extensions for MetadataExt.
Reopen
A trait for the reopen function.

Functions§

ambient_authority
Return an AmbientAuthority value, which allows use of functions that include an AmbientAuthority argument.