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
)