Struct wasmtime_wasi::bindings::filesystem::types::DescriptorStat
source · 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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
source§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.source§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§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self
file descriptor. Read moresource§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