#[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: File_system_identifier_type, Inode: Inode_type, Links: u64, Size: Size_type, Last_access: Time_type, Last_modification: Time_type, Last_status_change: Time_type, Type: Type_type, Permissions: Permissions_type, User: User_identifier_type, Group: Group_identifier_type, ) -> Self
pub const fn Get_file_system(&self) -> File_system_identifier_type
pub const fn Get_inode(&self) -> Inode_type
pub const fn Get_links(&self) -> u64
pub const fn Get_size(&self) -> Size_type
pub const fn Get_last_access(&self) -> Time_type
pub const fn Get_last_modification(&self) -> Time_type
pub const fn Get_last_status_change(&self) -> Time_type
pub const fn Get_type(&self) -> Type_type
pub const fn Get_permissions(&self) -> Permissions_type
pub const fn Get_user(&self) -> User_identifier_type
pub const fn Get_group(&self) -> Group_identifier_type
pub fn Set_file_system( &mut self, File_system: File_system_identifier_type, ) -> &mut Self
pub fn Set_inode(&mut self, Inode: Inode_type) -> &mut Self
pub fn Set_type(&mut self, Type: Type_type) -> &mut Self
pub fn Set_links(&mut self, Links: u64) -> &mut Self
pub fn Set_size(&mut self, Size: Size_type) -> &mut Self
pub fn Set_last_access(&mut self, Last_access: Time_type) -> &mut Self
pub fn Set_last_modification( &mut self, Last_modification: Time_type, ) -> &mut Self
pub fn Set_last_status_change( &mut self, Last_status_change: Time_type, ) -> &mut Self
pub fn Set_permissions(&mut self, Permissions: Permissions_type) -> &mut Self
pub fn Set_user(&mut self, User: User_identifier_type) -> &mut Self
pub fn Set_group(&mut self, Group: Group_identifier_type) -> &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 copy 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