pub enum ReadResult {
Hit(Frame),
Miss {
reason: MissReason,
observed_watermark_ms: Option<u64>,
},
}Expand description
Semantic result of one remote read.
Variants§
Hit(Frame)
A complete frame that passed decoding and, for tracked keys, the fence.
Miss
A classified miss. observed_watermark_ms is the valid invalidation
watermark read atomically with a tracked value, when one existed; a
refill stamped at or before it is known to remain unreadable.
Fields
§
reason: MissReasonWhy no servable frame was produced.
Implementations§
Source§impl ReadResult
impl ReadResult
Sourcepub fn miss(reason: MissReason) -> Self
pub fn miss(reason: MissReason) -> Self
A miss that observed no watermark.
Sourcepub fn is_miss(&self) -> bool
pub fn is_miss(&self) -> bool
true for ReadResult::Miss of any reason.
Trait Implementations§
Source§impl Clone for ReadResult
impl Clone for ReadResult
Source§fn clone(&self) -> ReadResult
fn clone(&self) -> ReadResult
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 ReadResult
impl Debug for ReadResult
impl Eq for ReadResult
Source§impl PartialEq for ReadResult
impl PartialEq for ReadResult
Source§fn eq(&self, other: &ReadResult) -> bool
fn eq(&self, other: &ReadResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReadResult
Auto Trait Implementations§
impl Freeze for ReadResult
impl RefUnwindSafe for ReadResult
impl Send for ReadResult
impl Sync for ReadResult
impl Unpin for ReadResult
impl UnsafeUnpin for ReadResult
impl UnwindSafe for ReadResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.