[−][src]Enum cap_primitives::fs::FollowSymlinks
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
impl FollowSymlinks
[src]
pub const fn follow(follow: bool) -> Self
[src]
Convert a bool where true means "follow" and false means "don't follow"
to a FollowSymlinks
.
Trait Implementations
impl Clone for FollowSymlinks
[src]
pub fn clone(&self) -> FollowSymlinks
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for FollowSymlinks
[src]
impl Debug for FollowSymlinks
[src]
impl Eq for FollowSymlinks
[src]
impl PartialEq<FollowSymlinks> for FollowSymlinks
[src]
pub fn eq(&self, other: &FollowSymlinks) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for FollowSymlinks
[src]
impl StructuralPartialEq for FollowSymlinks
[src]
Auto Trait Implementations
impl RefUnwindSafe for FollowSymlinks
[src]
impl Send for FollowSymlinks
[src]
impl Sync for FollowSymlinks
[src]
impl Unpin for FollowSymlinks
[src]
impl UnwindSafe for FollowSymlinks
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,