pub struct MetadataOptions { /* private fields */ }Expand description
Select metadata fields and whether to follow the final symlink. Ancestor symlinks use ordinary backend path-resolution semantics.
Implementations§
Source§impl MetadataOptions
impl MetadataOptions
Sourcepub fn new() -> MetadataOptions
pub fn new() -> MetadataOptions
Standard stat fields, following the final symlink.
Sourcepub fn fields(self, fields: AttrMask) -> MetadataOptions
pub fn fields(self, fields: AttrMask) -> MetadataOptions
Select requested attributes. Object type may additionally be fetched.
Sourcepub fn follow_symlinks(self, follow: bool) -> MetadataOptions
pub fn follow_symlinks(self, follow: bool) -> MetadataOptions
Follow the final symlink when true; otherwise describe the link itself.
Sourcepub fn requested_fields(self) -> AttrMask
pub fn requested_fields(self) -> AttrMask
Requested attributes; unavailable optional attributes remain absent.
Sourcepub fn follows_symlinks(self) -> bool
pub fn follows_symlinks(self) -> bool
Whether to follow the final component if it is a symlink.
Trait Implementations§
Source§impl Clone for MetadataOptions
impl Clone for MetadataOptions
Source§fn clone(&self) -> MetadataOptions
fn clone(&self) -> MetadataOptions
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 MetadataOptions
Source§impl Debug for MetadataOptions
impl Debug for MetadataOptions
Source§impl Default for MetadataOptions
impl Default for MetadataOptions
Source§fn default() -> MetadataOptions
fn default() -> MetadataOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MetadataOptions
impl RefUnwindSafe for MetadataOptions
impl Send for MetadataOptions
impl Sync for MetadataOptions
impl Unpin for MetadataOptions
impl UnsafeUnpin for MetadataOptions
impl UnwindSafe for MetadataOptions
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