pub struct FinalUnique {
pub key: String,
pub acked: bool,
pub readable_with_value: bool,
pub deleted: bool,
pub raw_tombstone: bool,
}Expand description
The final observed state of one unique (uncontended) key.
Fields§
§key: String§acked: boolThe write was acked (Committed) by the driver.
readable_with_value: boolThe key is readable (consumer get) with the exact value that was written.
deleted: boolThe driver later deleted this key and the delete was acked (Deleted).
raw_tombstone: boolA raw read returned a tombstone. Only meaningful when deleted. false
also covers a failed raw read (get_raw returning Err) — the collector
cannot distinguish “not a tombstone” from “couldn’t tell”. As of this
writing, workload::collect_unique folds Err into false via
matches!(store.get_raw(&key).await, Ok(Some(rec)) if rec.is_tombstone()),
so a raw read that errors on every replica during collection reads here
as a lost delete rather than a read failure.
Trait Implementations§
Source§impl Clone for FinalUnique
impl Clone for FinalUnique
Source§fn clone(&self) -> FinalUnique
fn clone(&self) -> FinalUnique
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 moreAuto Trait Implementations§
impl Freeze for FinalUnique
impl RefUnwindSafe for FinalUnique
impl Send for FinalUnique
impl Sync for FinalUnique
impl Unpin for FinalUnique
impl UnsafeUnpin for FinalUnique
impl UnwindSafe for FinalUnique
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request