pub struct Attributes { /* private fields */ }Expand description
File attributes.
The attributes are metadata associated with the file that stores:
- The file type.
- The file creation time.
- The file modification time.
- The file access time.
- The file permissions.
- The file owner.
- The file group.
Implementations§
Source§impl Attributes
impl Attributes
pub const fn new() -> Self
pub fn get_mask(&self) -> AttributeFlags
pub fn set_mask(self, mask: AttributeFlags) -> Self
pub fn get_inode(&self) -> Option<&Inode>
pub fn get_mutable_inode(&mut self) -> Option<&mut Inode>
pub fn set_inode(self, inode: Inode) -> Self
pub fn get_size(&self) -> Option<&Size>
pub fn get_mutable_size(&mut self) -> Option<&mut Size>
pub fn set_size(self, size: Size) -> Self
pub fn get_kind(&self) -> Option<&Kind>
pub fn get_mutable_kind(&mut self) -> Option<&mut Kind>
pub fn set_kind(self, kind: Kind) -> Self
pub fn get_permissions(&self) -> Option<&Permissions>
pub fn get_mutable_permissions(&mut self) -> Option<&mut Permissions>
pub fn set_permissions(self, permissions: Permissions) -> Self
pub fn get_user(&self) -> Option<&UserIdentifier>
pub fn get_mutable_user(&mut self) -> Option<&mut UserIdentifier>
pub fn set_user(self, user: UserIdentifier) -> Self
pub fn get_group(&self) -> Option<&GroupIdentifier>
pub fn get_mutable_group(&mut self) -> Option<&mut GroupIdentifier>
pub fn set_group(self, group: GroupIdentifier) -> Self
pub fn get_creation(&self) -> Option<&Time>
pub fn get_mutable_creation(&mut self) -> Option<&mut Time>
pub fn set_creation(self, creation: Time) -> Self
pub fn get_modification(&self) -> Option<&Time>
pub fn get_mutable_modification(&mut self) -> Option<&mut Time>
pub fn set_modification(self, modification: Time) -> Self
pub fn get_access(&self) -> Option<&Time>
pub fn get_mutable_access(&mut self) -> Option<&mut Time>
pub fn set_access(self, access: Time) -> Self
pub fn get_status(&self) -> Option<&Time>
pub fn get_mutable_status(&mut self) -> Option<&mut Time>
pub fn set_status(self, status: Time) -> Self
pub fn get_links(&self) -> Option<&Size>
pub fn get_mutable_links(&mut self) -> Option<&mut Size>
pub fn set_links(self, links: Size) -> Self
Trait Implementations§
Source§impl Clone for Attributes
impl Clone for Attributes
Source§fn clone(&self) -> Attributes
fn clone(&self) -> Attributes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Attributes
impl Debug for Attributes
Source§impl Default for Attributes
impl Default for Attributes
Source§impl PartialEq for Attributes
impl PartialEq for Attributes
impl Eq for Attributes
impl StructuralPartialEq for Attributes
Auto Trait Implementations§
impl Freeze for Attributes
impl RefUnwindSafe for Attributes
impl Send for Attributes
impl Sync for Attributes
impl Unpin for Attributes
impl UnwindSafe for Attributes
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