#[repr(C)]pub struct Statistics_type { /* private fields */ }
Expand description
Statistics of a file.
This type contains information about a file, such as its size, inode, etc.
§Fields
File_system
: The file system the file is on.Inode
: The inode of the file.Links
: The number of hard links to the file.Size
: The size of the file.Last_access
: The last time the file was accessed.Last_modification
: The last time the file was modified.Last_status_change
: The last time the file’s status was changed.Type
: The type of the file.
Implementations§
Source§impl Statistics_type
impl Statistics_type
pub fn new( file_system: FileSystemIdentifier, inode: Inode, links: u64, size: Size, last_access: Time, last_modification: Time, last_status_change: Time, type_value: Kind, permissions: Permissions, user: UserIdentifier, group: GroupIdentifier, ) -> Self
pub const fn get_file_system(&self) -> FileSystemIdentifier
pub const fn get_inode(&self) -> Inode
pub const fn get_links(&self) -> u64
pub const fn get_size(&self) -> Size
pub const fn get_last_access(&self) -> Time
pub const fn get_last_modification(&self) -> Time
pub const fn get_last_status_change(&self) -> Time
pub const fn get_type(&self) -> Kind
pub const fn get_permissions(&self) -> Permissions
pub const fn get_user(&self) -> UserIdentifier
pub const fn get_group(&self) -> GroupIdentifier
pub fn set_file_system( &mut self, file_system: FileSystemIdentifier, ) -> &mut Self
pub fn set_inode(&mut self, inode: Inode) -> &mut Self
pub fn set_type(&mut self, type: Kind) -> &mut Self
pub fn set_links(&mut self, links: u64) -> &mut Self
pub fn set_size(&mut self, size: Size) -> &mut Self
pub fn set_last_access(&mut self, last_access: Time) -> &mut Self
pub fn set_last_modification(&mut self, last_modification: Time) -> &mut Self
pub fn set_last_status_change(&mut self, last_status_change: Time) -> &mut Self
pub fn set_permissions(&mut self, permissions: Permissions) -> &mut Self
pub fn set_user(&mut self, user: UserIdentifier) -> &mut Self
pub fn set_group(&mut self, group: GroupIdentifier) -> &mut Self
Trait Implementations§
Source§impl Clone for Statistics_type
impl Clone for Statistics_type
Source§fn clone(&self) -> Statistics_type
fn clone(&self) -> Statistics_type
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 Statistics_type
impl Debug for Statistics_type
Source§impl PartialEq for Statistics_type
impl PartialEq for Statistics_type
impl Eq for Statistics_type
impl StructuralPartialEq for Statistics_type
Auto Trait Implementations§
impl Freeze for Statistics_type
impl RefUnwindSafe for Statistics_type
impl Send for Statistics_type
impl Sync for Statistics_type
impl Unpin for Statistics_type
impl UnwindSafe for Statistics_type
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