pub enum BoundContextValidity {
Current,
StaleWithinEpoch {
versions_behind: u64,
},
InvalidAcrossEpoch {
epochs_behind: u64,
},
}Expand description
Result of checking a ViewBoundContext’s validity.
Variants§
Current
Same ViewVersion — context is exactly current.
StaleWithinEpoch
Same ViewEpoch but different ViewVersion. View has changed
within the epoch (small motions, compensations). Context may be
approximately valid but should be checked.
InvalidAcrossEpoch
Different ViewEpoch — view has changed fundamentally.
Context should be considered invalid.
Trait Implementations§
Source§impl Clone for BoundContextValidity
impl Clone for BoundContextValidity
Source§fn clone(&self) -> BoundContextValidity
fn clone(&self) -> BoundContextValidity
Returns a duplicate 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 BoundContextValidity
impl Debug for BoundContextValidity
Source§impl PartialEq for BoundContextValidity
impl PartialEq for BoundContextValidity
impl Copy for BoundContextValidity
impl Eq for BoundContextValidity
impl StructuralPartialEq for BoundContextValidity
Auto Trait Implementations§
impl Freeze for BoundContextValidity
impl RefUnwindSafe for BoundContextValidity
impl Send for BoundContextValidity
impl Sync for BoundContextValidity
impl Unpin for BoundContextValidity
impl UnsafeUnpin for BoundContextValidity
impl UnwindSafe for BoundContextValidity
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