pub struct VMetadata {
pub created: Option<usize>,
pub accessed: Option<usize>,
pub modified: Option<usize>,
pub file_type: VFileType,
pub size: u64,
}Fields§
§created: Option<usize>Seconds elapsed since UNIX_EPOCH in UTC
this is optional, because some filesystems might not support this timestamp
accessed: Option<usize>Seconds elapsed since UNIX_EPOCH in UTC
this is optional, because some filesystems might not support this timestamp
modified: Option<usize>Seconds elapsed since UNIX_EPOCH in UTC
this is optional, because some filesystems might not support this timestamp
file_type: VFileType§size: u64Implementations§
Source§impl VMetadata
impl VMetadata
Sourcepub fn created_opt(&self) -> Option<&usize>
pub fn created_opt(&self) -> Option<&usize>
Seconds elapsed since UNIX_EPOCH in UTC
Sourcepub fn accessed_opt(&self) -> Option<&usize>
pub fn accessed_opt(&self) -> Option<&usize>
Seconds elapsed since UNIX_EPOCH in UTC
Sourcepub fn modified_opt(&self) -> Option<&usize>
pub fn modified_opt(&self) -> Option<&usize>
Seconds elapsed since UNIX_EPOCH in UTC
pub fn is_file(&self) -> bool
pub fn is_dir(&self) -> bool
pub fn is_symlink(&self) -> bool
pub fn len(&self) -> u64
Auto Trait Implementations§
impl Freeze for VMetadata
impl RefUnwindSafe for VMetadata
impl Send for VMetadata
impl Sync for VMetadata
impl Unpin for VMetadata
impl UnwindSafe for VMetadata
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