#[non_exhaustive]pub struct StatOptions {
pub follow_symlinks: bool,
}Expand description
Options controlling node metadata lookup.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.follow_symlinks: boolWhether to resolve the final symbolic link.
Implementations§
Source§impl StatOptions
impl StatOptions
Sourcepub const fn follow_symlinks(self, follow_symlinks: bool) -> Self
pub const fn follow_symlinks(self, follow_symlinks: bool) -> Self
Sets whether to resolve the final symbolic link.
Trait Implementations§
Source§impl Clone for StatOptions
impl Clone for StatOptions
Source§fn clone(&self) -> StatOptions
fn clone(&self) -> StatOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StatOptions
Source§impl Debug for StatOptions
impl Debug for StatOptions
Source§impl Default for StatOptions
impl Default for StatOptions
Source§impl<'de> Deserialize<'de> for StatOptions
impl<'de> Deserialize<'de> for StatOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StatOptions
Source§impl PartialEq for StatOptions
impl PartialEq for StatOptions
Source§impl Serialize for StatOptions
impl Serialize for StatOptions
impl StructuralPartialEq for StatOptions
Auto Trait Implementations§
impl Freeze for StatOptions
impl RefUnwindSafe for StatOptions
impl Send for StatOptions
impl Sync for StatOptions
impl Unpin for StatOptions
impl UnsafeUnpin for StatOptions
impl UnwindSafe for StatOptions
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