Struct wasi_common::fs::Metadata
source · pub struct Metadata {}
Expand description
Metadata information about a file.
This corresponds to std::fs::Metadata
.
TODO: Not yet implemented.
Implementations§
source§impl Metadata
impl Metadata
sourcepub fn file_type(&self) -> FileType
pub fn file_type(&self) -> FileType
Returns the file type for this metadata.
This corresponds to std::fs::Metadata::file_type
.
TODO: Not yet implemented.
sourcepub fn is_dir(&self) -> bool
pub fn is_dir(&self) -> bool
Returns true if this metadata is for a directory.
This corresponds to std::fs::Metadata::is_dir
.
TODO: Not yet implemented.
sourcepub fn is_file(&self) -> bool
pub fn is_file(&self) -> bool
Returns true if this metadata is for a regular file.
This corresponds to std::fs::Metadata::is_file
.
TODO: Not yet implemented.
sourcepub fn len(&self) -> u64
pub fn len(&self) -> u64
Returns the size of the file, in bytes, this metadata is for.
This corresponds to std::fs::Metadata::len
.
TODO: Not yet implemented.
sourcepub fn permissions(&self) -> Permissions
pub fn permissions(&self) -> Permissions
Returns the permissions of the file this metadata is for.
This corresponds to std::fs::Metadata::permissions
.
TODO: Not yet implemented.
sourcepub fn modified(&self) -> Result<SystemTime>
pub fn modified(&self) -> Result<SystemTime>
Returns the last modification time listed in this metadata.
This corresponds to std::fs::Metadata::modified
.
TODO: Not yet implemented.
sourcepub fn accessed(&self) -> Result<SystemTime>
pub fn accessed(&self) -> Result<SystemTime>
Returns the last access time of this metadata.
This corresponds to std::fs::Metadata::accessed
.
TODO: Not yet implemented.
sourcepub fn created(&self) -> Result<SystemTime>
pub fn created(&self) -> Result<SystemTime>
Returns the creation time listed in this metadata.
This corresponds to std::fs::Metadata::created
.
TODO: Not yet implemented.
Trait Implementations§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)