Enum cap_primitives::fs::FollowSymlinks [−][src]
pub enum FollowSymlinks {
Yes,
No,
}Expand description
Should symlinks be followed in the last component of a path?
Note that this doesn’t affect path components other than the last. So for example in “foo/bar/baz”, if “foo” or “bar” are symlinks, they will always be followed. This enum value only determines whether “baz” is followed.
Instead of passing bare bools as parameters, pass a distinct
enum so that the intent is clear.
Variants
Yes, do follow symlinks in the last component of a path.
No, do not follow symlinks in the last component of a path.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FollowSymlinksimpl Send for FollowSymlinksimpl Sync for FollowSymlinksimpl Unpin for FollowSymlinksimpl UnwindSafe for FollowSymlinksBlanket Implementations
Mutably borrows from an owned value. Read more