pub struct DescriptorStat {
pub type_: DescriptorType,
pub link_count: LinkCount,
pub size: Filesize,
pub data_access_timestamp: Option<Datetime>,
pub data_modification_timestamp: Option<Datetime>,
pub status_change_timestamp: Option<Datetime>,
}
Expand description
File attributes.
Note: This was called filestat
in earlier versions of WASI.
Fields§
§type_: DescriptorType
File type.
link_count: LinkCount
Number of hard links to the file.
size: Filesize
For regular files, the file size in bytes. For symbolic links, the length in bytes of the pathname contained in the symbolic link.
data_access_timestamp: Option<Datetime>
Last data access timestamp.
If the option
is none, the platform doesn’t maintain an access
timestamp for this file.
data_modification_timestamp: Option<Datetime>
Last data modification timestamp.
If the option
is none, the platform doesn’t maintain a
modification timestamp for this file.
status_change_timestamp: Option<Datetime>
Last file status-change timestamp.
If the option
is none, the platform doesn’t maintain a
status-change timestamp for this file.
Trait Implementations§
Source§impl Clone for DescriptorStat
impl Clone for DescriptorStat
Source§fn clone(&self) -> DescriptorStat
fn clone(&self) -> DescriptorStat
Returns a copy 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 DescriptorStat
impl Debug for DescriptorStat
Source§impl From<DescriptorStat> for DescriptorStat
impl From<DescriptorStat> for DescriptorStat
Source§fn from(other: DescriptorStat) -> Self
fn from(other: DescriptorStat) -> Self
Converts to this type from the input type.
impl ComponentType for DescriptorStat
impl Copy for DescriptorStat
impl Lift for DescriptorStat
impl Lower for DescriptorStat
Auto Trait Implementations§
impl Freeze for DescriptorStat
impl RefUnwindSafe for DescriptorStat
impl Send for DescriptorStat
impl Sync for DescriptorStat
impl Unpin for DescriptorStat
impl UnwindSafe for DescriptorStat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more