pub struct BackendRefreshSample {
pub epoch: MountEpoch,
pub listings: BTreeMap<String, u64>,
pub stamps: BTreeMap<String, u64>,
}Expand description
One explicit observation of a mounted backend that lacks a watch contract.
Listing and stamp keys are canonical absolute expression-tree paths. Their numeric values are backend-owned monotone or content-derived stamps; the calculator compares them for equality and never interprets their magnitude.
Fields§
§epoch: MountEpochBackend-wide generation.
listings: BTreeMap<String, u64>Directory listing stamps by absolute directory path.
stamps: BTreeMap<String, u64>Entry stamps by absolute entry path.
Implementations§
Source§impl BackendRefreshSample
impl BackendRefreshSample
Sourcepub fn new(epoch: MountEpoch) -> Self
pub fn new(epoch: MountEpoch) -> Self
Creates an epoch-only backend observation.
Sourcepub fn with_listing(self, path: impl Into<String>, stamp: u64) -> Self
pub fn with_listing(self, path: impl Into<String>, stamp: u64) -> Self
Adds a directory listing stamp.
Sourcepub fn with_stamp(self, path: impl Into<String>, stamp: u64) -> Self
pub fn with_stamp(self, path: impl Into<String>, stamp: u64) -> Self
Adds an entry stamp.
Trait Implementations§
Source§impl Clone for BackendRefreshSample
impl Clone for BackendRefreshSample
Source§fn clone(&self) -> BackendRefreshSample
fn clone(&self) -> BackendRefreshSample
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 moreSource§impl Debug for BackendRefreshSample
impl Debug for BackendRefreshSample
impl Eq for BackendRefreshSample
Source§impl PartialEq for BackendRefreshSample
impl PartialEq for BackendRefreshSample
impl StructuralPartialEq for BackendRefreshSample
Auto Trait Implementations§
impl Freeze for BackendRefreshSample
impl RefUnwindSafe for BackendRefreshSample
impl Send for BackendRefreshSample
impl Sync for BackendRefreshSample
impl Unpin for BackendRefreshSample
impl UnsafeUnpin for BackendRefreshSample
impl UnwindSafe for BackendRefreshSample
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