pub struct AttrsOptions { /* 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 AttrsOptions
impl AttrsOptions
Sourcepub fn new() -> AttrsOptions
pub fn new() -> AttrsOptions
Standard stat fields, following the final symlink.
Sourcepub fn fields(self, fields: AttrMask) -> AttrsOptions
pub fn fields(self, fields: AttrMask) -> AttrsOptions
Select requested attributes. Object type may additionally be fetched.
Sourcepub fn follow_symlinks(self, follow: bool) -> AttrsOptions
pub fn follow_symlinks(self, follow: bool) -> AttrsOptions
Follow the final symlink when true; otherwise describe the link itself.
Sourcepub fn requested_attributes(self) -> AttrMask
pub fn requested_attributes(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 AttrsOptions
impl Clone for AttrsOptions
Source§fn clone(&self) -> AttrsOptions
fn clone(&self) -> AttrsOptions
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 AttrsOptions
Source§impl Debug for AttrsOptions
impl Debug for AttrsOptions
Source§impl Default for AttrsOptions
impl Default for AttrsOptions
Source§fn default() -> AttrsOptions
fn default() -> AttrsOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AttrsOptions
impl RefUnwindSafe for AttrsOptions
impl Send for AttrsOptions
impl Sync for AttrsOptions
impl Unpin for AttrsOptions
impl UnsafeUnpin for AttrsOptions
impl UnwindSafe for AttrsOptions
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