pub enum FreshnessPolicy {
Causal {
token: CommitToken,
max_wait: Duration,
},
Bounded {
max_lag_sequences: u64,
},
Available,
}Expand description
Projected-query freshness policy (ADR-0086 §3).
Wait/retry loops and wall clocks live outside the deterministic engine; the policy is a pure data shape the service layer interprets.
Variants§
Causal
Serve only once the projection frontier satisfies token.
Fields
§
token: CommitTokenRequired causal fence.
Bounded
Serve only if head-to-frontier lag is within max_lag_sequences.
Available
Serve the current published snapshot, reporting its frontier.
Trait Implementations§
Source§impl Clone for FreshnessPolicy
impl Clone for FreshnessPolicy
Source§impl Debug for FreshnessPolicy
impl Debug for FreshnessPolicy
impl Eq for FreshnessPolicy
Source§impl PartialEq for FreshnessPolicy
impl PartialEq for FreshnessPolicy
impl StructuralPartialEq for FreshnessPolicy
Auto Trait Implementations§
impl Freeze for FreshnessPolicy
impl RefUnwindSafe for FreshnessPolicy
impl Send for FreshnessPolicy
impl Sync for FreshnessPolicy
impl Unpin for FreshnessPolicy
impl UnsafeUnpin for FreshnessPolicy
impl UnwindSafe for FreshnessPolicy
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