pub struct FileStat {
pub size: u64,
pub file_type: u8,
pub block_count: u32,
pub created_at: u64,
pub modified_at: u64,
}Expand description
File metadata returned by stat().
Fields§
§size: u64File size in bytes.
file_type: u8Type tag (FILE_TYPE_FILE or FILE_TYPE_DIR).
block_count: u32Number of allocated data blocks.
created_at: u64Creation timestamp (unix seconds in current implementation semantics).
modified_at: u64Last modification timestamp (unix seconds in current implementation semantics).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileStat
impl RefUnwindSafe for FileStat
impl Send for FileStat
impl Sync for FileStat
impl Unpin for FileStat
impl UnwindSafe for FileStat
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