pub struct Attrs { /* private fields */ }Expand description
Idiomatic metadata returned by the Rust-native path API.
Implementations§
Source§impl Attrs
impl Attrs
Sourcepub fn mode(&self) -> Option<u32>
pub fn mode(&self) -> Option<u32>
Full POSIX mode, including the file type bits, when returned.
Sourcepub fn has_named_attributes(&self) -> Option<bool>
pub fn has_named_attributes(&self) -> Option<bool>
Whether named attributes exist, when the backend supplied this field.
pub fn file_type(&self) -> VfType
pub fn is_file(&self) -> bool
pub fn is_dir(&self) -> bool
pub fn is_symlink(&self) -> bool
pub fn len(&self) -> u64
pub fn is_empty(&self) -> bool
pub fn permissions(&self) -> Permissions
pub fn modified(&self) -> Option<SystemTime>
pub fn accessed(&self) -> Option<SystemTime>
Sourcepub fn changed(&self) -> Option<SystemTime>
pub fn changed(&self) -> Option<SystemTime>
POSIX status-change time; this is not a creation timestamp.
pub fn nlink(&self) -> Option<u32>
pub fn file_id(&self) -> Option<u64>
pub fn change_id(&self) -> Option<u64>
pub fn uid(&self) -> Option<u32>
pub fn gid(&self) -> Option<u32>
Trait Implementations§
impl Eq for Attrs
impl StructuralPartialEq for Attrs
Auto Trait Implementations§
impl Freeze for Attrs
impl RefUnwindSafe for Attrs
impl Send for Attrs
impl Sync for Attrs
impl Unpin for Attrs
impl UnsafeUnpin for Attrs
impl UnwindSafe for Attrs
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