pub struct ManifestVersion(pub u64);Expand description
Opaque optimistic-concurrency token for one observed register state.
A backend supplies whatever counter expresses “the register has not changed since this read” — the GCS implementation uses the object metageneration (the register is never deleted or recreated, so its generation is constant), a SQL implementation might use a row version. Callers only thread the token from a read into the conditional update that follows it.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl Clone for ManifestVersion
impl Clone for ManifestVersion
Source§fn clone(&self) -> ManifestVersion
fn clone(&self) -> ManifestVersion
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 moreimpl Copy for ManifestVersion
Source§impl Debug for ManifestVersion
impl Debug for ManifestVersion
impl Eq for ManifestVersion
Source§impl PartialEq for ManifestVersion
impl PartialEq for ManifestVersion
Source§fn eq(&self, other: &ManifestVersion) -> bool
fn eq(&self, other: &ManifestVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ManifestVersion
Auto Trait Implementations§
impl Freeze for ManifestVersion
impl RefUnwindSafe for ManifestVersion
impl Send for ManifestVersion
impl Sync for ManifestVersion
impl Unpin for ManifestVersion
impl UnsafeUnpin for ManifestVersion
impl UnwindSafe for ManifestVersion
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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