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.
ⓘ
use vfsi_core::api::AttrsOptions;
AttrsOptions::new().with_follow_symlinks(false);Implementations§
Source§impl AttrsOptions
impl AttrsOptions
Sourcepub fn new() -> AttrsOptions
pub fn new() -> AttrsOptions
Standard stat fields, following the final symlink.
Sourcepub fn with_fields(self, fields: AttrMask) -> AttrsOptions
pub fn with_fields(self, fields: AttrMask) -> AttrsOptions
Select requested attributes. Object type may additionally be fetched.
Sourcepub fn with_follow_final_symlink(self, follow: bool) -> AttrsOptions
pub fn with_follow_final_symlink(self, follow: bool) -> AttrsOptions
Follow the final symlink when true; otherwise describe the link itself.
Sourcepub fn fields(self) -> AttrMask
pub fn fields(self) -> AttrMask
Requested attributes; unavailable optional attributes remain absent.
Sourcepub fn follow_final_symlink(self) -> bool
pub fn follow_final_symlink(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