pub struct FsMetadata {
pub is_file: bool,
pub is_dir: bool,
pub is_symlink: bool,
pub len: u64,
pub mode: u32,
}Expand description
Metadata about a filesystem entry.
Fields§
§is_file: bool§is_dir: bool§is_symlink: bool§len: u64§mode: u32Unix permission mode (e.g. 0o755).
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 moreAuto 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