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 bool
s 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 FollowSymlinks
impl Send for FollowSymlinks
impl Sync for FollowSymlinks
impl Unpin for FollowSymlinks
impl UnwindSafe for FollowSymlinks
Blanket Implementations
Mutably borrows from an owned value. Read more