pub struct Metadata { /* 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 Metadata
impl Metadata
pub const IDENTIFIER: u8 = 1u8
pub fn get_default( type_value: Kind, current_time: Time, user: UserIdentifier, group: GroupIdentifier, ) -> Option<Self>
pub fn get_inode(&self) -> Option<Inode>
pub fn get_type(&self) -> Kind
pub fn get_creation_time(&self) -> Time
pub fn get_modification_time(&self) -> Time
pub fn get_access_time(&self) -> Time
pub fn get_permissions(&self) -> Permissions
pub fn get_user(&self) -> UserIdentifier
pub fn get_group(&self) -> GroupIdentifier
pub fn set_inode(&mut self, inode: Inode)
pub fn set_type(&mut self, type: Kind)
pub fn set_creation_time(&mut self, time: Time)
pub fn set_modification_time(&mut self, time: Time)
pub fn set_access_time(&mut self, time: Time)
pub fn set_permissions(&mut self, permissions: Permissions)
pub fn set_owner(&mut self, owner: UserIdentifier)
pub fn set_group(&mut self, group: GroupIdentifier)
Trait Implementations§
impl Eq for Metadata
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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