Enum cap_primitives::fs::FollowSymlinks
source · pub enum FollowSymlinks {
Yes,
No,
}
Expand description
Should symlinks be followed in the last component of a path?
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
Yes, do follow symlinks in the last component of a path.
No
No, do not follow symlinks in the last component of a path.
Implementations§
Trait Implementations§
source§impl Clone for FollowSymlinks
impl Clone for FollowSymlinks
source§fn clone(&self) -> FollowSymlinks
fn clone(&self) -> FollowSymlinks
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FollowSymlinks
impl Debug for FollowSymlinks
source§impl PartialEq for FollowSymlinks
impl PartialEq for FollowSymlinks
impl Copy for FollowSymlinks
impl Eq for FollowSymlinks
impl StructuralPartialEq for FollowSymlinks
Auto Trait Implementations§
impl Freeze for FollowSymlinks
impl RefUnwindSafe for FollowSymlinks
impl Send for FollowSymlinks
impl Sync for FollowSymlinks
impl Unpin for FollowSymlinks
impl UnwindSafe for FollowSymlinks
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)