pub struct FsMetadata { /* private fields */ }Implementations§
Source§impl FsMetadata
impl FsMetadata
pub fn new( file_type: FsFileType, len: u64, modified: Option<SystemTime>, readonly: bool, ) -> Self
pub fn new_with_hash( file_type: FsFileType, len: u64, modified: Option<SystemTime>, readonly: bool, hash: Option<String>, ) -> Self
pub fn file_type(&self) -> FsFileType
pub fn is_dir(&self) -> bool
pub fn is_file(&self) -> bool
pub fn is_symlink(&self) -> bool
pub fn len(&self) -> u64
pub fn hash(&self) -> Option<&str>
pub fn is_empty(&self) -> bool
pub fn modified(&self) -> Option<SystemTime>
pub fn is_readonly(&self) -> bool
Trait Implementations§
Source§impl Clone for FsMetadata
impl Clone for FsMetadata
Source§fn clone(&self) -> FsMetadata
fn clone(&self) -> FsMetadata
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 FsMetadata
impl Debug for FsMetadata
Auto Trait Implementations§
impl Freeze for FsMetadata
impl RefUnwindSafe for FsMetadata
impl Send for FsMetadata
impl Sync for FsMetadata
impl Unpin for FsMetadata
impl UnsafeUnpin for FsMetadata
impl UnwindSafe for FsMetadata
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