Enum cap_fs_ext::FollowSymlinks [−][src]
pub enum FollowSymlinks {
Yes,
No,
}Expand description
Re-export these to allow them to be used with Reuse.
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
Re-export these to allow them to be used with Reuse.
Convert a bool where true means “follow” and false means “don’t follow”
to a FollowSymlinks.
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