pub enum VerificationMode {
None,
Authoritative,
EventuallyConsistent {
settle: Duration,
},
}Expand description
How far a verification result can be trusted.
Variants§
None
The effect has no verification.
Authoritative
The remote system reads its own writes: “not found” means the effect did not apply.
EventuallyConsistent
The remote system’s lookup lags behind its writes, as many search and
list APIs do. “Not found” is only trusted once settle has passed
since the attempt ended (its action returned or was found
interrupted); earlier, it counts as inconclusive.
Implementations§
Source§impl VerificationMode
impl VerificationMode
Sourcepub fn read_not_found(self, elapsed: Duration) -> NotFoundReading
pub fn read_not_found(self, elapsed: Duration) -> NotFoundReading
How to read “not found” when elapsed has passed since the attempt
in question ended.
VerificationMode::None has no verification to read; it is
reported as NotFoundReading::TooEarly with no wait so callers that
get here by mistake never re-execute.
Trait Implementations§
Source§impl Clone for VerificationMode
impl Clone for VerificationMode
impl Copy for VerificationMode
Source§impl Debug for VerificationMode
impl Debug for VerificationMode
Source§impl Default for VerificationMode
impl Default for VerificationMode
Source§impl<'de> Deserialize<'de> for VerificationMode
impl<'de> Deserialize<'de> for VerificationMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VerificationMode
Source§impl PartialEq for VerificationMode
impl PartialEq for VerificationMode
Source§impl Serialize for VerificationMode
impl Serialize for VerificationMode
impl StructuralPartialEq for VerificationMode
Auto Trait Implementations§
impl Freeze for VerificationMode
impl RefUnwindSafe for VerificationMode
impl Send for VerificationMode
impl Sync for VerificationMode
impl Unpin for VerificationMode
impl UnsafeUnpin for VerificationMode
impl UnwindSafe for VerificationMode
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