pub struct InodeStat {
pub expiry: Expiry,
pub size: usize,
pub mtime: OffsetDateTime,
pub ctime: OffsetDateTime,
pub atime: OffsetDateTime,
pub etag: Option<Box<str>>,
pub is_readable: bool,
}Fields§
§expiry: ExpiryTime this stat becomes invalid and needs to be refreshed
size: usizeSize in bytes
mtime: OffsetDateTimeTime of last file content modification
ctime: OffsetDateTimeTime of last file metadata (or content) change
atime: OffsetDateTimeTime of last access
etag: Option<Box<str>>Etag for the file (object)
is_readable: boolInodes corresponding to S3 objects with GLACIER or DEEP_ARCHIVE storage classes
are only readable after restoration. For objects with other storage classes
this field should be always true.
Implementations§
Source§impl InodeStat
impl InodeStat
pub fn is_valid(&self) -> bool
pub fn update_validity(&mut self, validity: Duration)
Sourcepub fn for_file(
size: usize,
datetime: OffsetDateTime,
etag: Option<Box<str>>,
storage_class: Option<&str>,
restore_status: Option<RestoreStatus>,
validity: Duration,
) -> InodeStat
pub fn for_file( size: usize, datetime: OffsetDateTime, etag: Option<Box<str>>, storage_class: Option<&str>, restore_status: Option<RestoreStatus>, validity: Duration, ) -> InodeStat
Initialize an InodeStat for a file, given some metadata.
Sourcepub fn for_directory(datetime: OffsetDateTime, validity: Duration) -> InodeStat
pub fn for_directory(datetime: OffsetDateTime, validity: Duration) -> InodeStat
Initialize an InodeStat for a directory, given some metadata.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InodeStat
impl RefUnwindSafe for InodeStat
impl Send for InodeStat
impl Sync for InodeStat
impl Unpin for InodeStat
impl UnsafeUnpin for InodeStat
impl UnwindSafe for InodeStat
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