[−][src]Struct wasi_common::fs::Metadata
Metadata information about a file.
This corresponds to std::fs::Metadata
.
TODO: Not yet implemented.
Implementations
impl Metadata
[src]
pub fn file_type(&self) -> FileType
[src]
Returns the file type for this metadata.
This corresponds to std::fs::Metadata::file_type
.
TODO: Not yet implemented.
pub fn is_dir(&self) -> bool
[src]
Returns true if this metadata is for a directory.
This corresponds to std::fs::Metadata::is_dir
.
TODO: Not yet implemented.
pub fn is_file(&self) -> bool
[src]
Returns true if this metadata is for a regular file.
This corresponds to std::fs::Metadata::is_file
.
TODO: Not yet implemented.
pub fn len(&self) -> u64
[src]
Returns the size of the file, in bytes, this metadata is for.
This corresponds to std::fs::Metadata::len
.
TODO: Not yet implemented.
pub fn permissions(&self) -> Permissions
[src]
Returns the permissions of the file this metadata is for.
This corresponds to std::fs::Metadata::permissions
.
TODO: Not yet implemented.
pub fn modified(&self) -> Result<SystemTime>
[src]
Returns the last modification time listed in this metadata.
This corresponds to std::fs::Metadata::modified
.
TODO: Not yet implemented.
pub fn accessed(&self) -> Result<SystemTime>
[src]
Returns the last access time of this metadata.
This corresponds to std::fs::Metadata::accessed
.
TODO: Not yet implemented.
pub fn created(&self) -> Result<SystemTime>
[src]
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 RefUnwindSafe for Metadata
[src]
impl Send for Metadata
[src]
impl Sync for Metadata
[src]
impl Unpin for Metadata
[src]
impl UnwindSafe for Metadata
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointee for T
[src]
type Pointer = u32
pub fn debug(
pointer: <T as Pointee>::Pointer,
f: &mut Formatter<'_>
) -> Result<(), Error>
[src]
pointer: <T as Pointee>::Pointer,
f: &mut Formatter<'_>
) -> Result<(), Error>
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,