cap_fs_ext

Trait OpenOptionsFollowExt

Source
pub trait OpenOptionsFollowExt {
    // Required method
    fn follow(&mut self, follow: FollowSymlinks) -> &mut Self;
}
Expand description

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.

Required Methods§

Source

fn follow(&mut self, follow: FollowSymlinks) -> &mut Self

Sets the option for following symlinks in the last component of a path.

This option, when set to FollowSymlinks::Yes, will indicate that a symbolic link in the last component of a path will be followed. When set to FollowSymlinks::No, it will indicate that attempting to resolve a path which ends in a symbolic link will fail.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§