pub struct Metadata(/* private fields */);Expand description
Metadata information about a file.
This structure, a single element tuple containing a std::fs::Metadata that implements
rsfs::Metadata, is returned from the metadata or symlink_metadata methods and
represents known metadata information about a file at the instant in time this structure is
instantiated.
§Examples
let fs = rsfs::disk::FS;
fs.create_file("f")?;
println!("{:?}", fs.metadata("f")?);Trait Implementations§
Source§impl Metadata for Metadata
impl Metadata for Metadata
Source§type Permissions = Permissions
type Permissions = Permissions
The
Permissions type in the same module implementing this trait.Source§fn permissions(&self) -> Self::Permissions
fn permissions(&self) -> Self::Permissions
Returns the permissions of the file this metadata is for. Read more
Source§fn modified(&self) -> Result<SystemTime>
fn modified(&self) -> Result<SystemTime>
Returns the last modification time listed in this metadata. Read more
Source§fn accessed(&self) -> Result<SystemTime>
fn accessed(&self) -> Result<SystemTime>
Returns the last access time listed in this metadata. Read more
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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