pub struct BackingStamp {
pub size: u64,
pub mtime_ns: i64,
pub ctime_ns: i64,
}Expand description
(size, mtime_ns, ctime_ns) captured from one fstat. mtime_ns/ctime_ns
are nanoseconds since the Unix epoch (good until ~2262). ctime is the
adversarial backstop: a writer can reset mtime with utimensat, but ctime
is bumped by any write and cannot be set backward.
Fields§
§size: u64§mtime_ns: i64§ctime_ns: i64Implementations§
Source§impl BackingStamp
impl BackingStamp
pub fn from_metadata(meta: &Metadata) -> BackingStamp
pub fn from_track(t: &Track) -> BackingStamp
Sourcepub fn display_secs(&self) -> i64
pub fn display_secs(&self) -> i64
Whole-second mtime for the FUSE getattr display surface (never the raw
nanosecond value, which would advertise a ~10^18-second timestamp).
Trait Implementations§
Source§impl Clone for BackingStamp
impl Clone for BackingStamp
Source§fn clone(&self) -> BackingStamp
fn clone(&self) -> BackingStamp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BackingStamp
Source§impl Debug for BackingStamp
impl Debug for BackingStamp
impl Eq for BackingStamp
Source§impl PartialEq for BackingStamp
impl PartialEq for BackingStamp
Source§fn eq(&self, other: &BackingStamp) -> bool
fn eq(&self, other: &BackingStamp) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BackingStamp
Auto Trait Implementations§
impl Freeze for BackingStamp
impl RefUnwindSafe for BackingStamp
impl Send for BackingStamp
impl Sync for BackingStamp
impl Unpin for BackingStamp
impl UnsafeUnpin for BackingStamp
impl UnwindSafe for BackingStamp
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.