Struct eventstore::WrongExpectedVersion
source · pub struct WrongExpectedVersion {
pub current: CurrentRevision,
pub expected: ExpectedRevision,
}
Fields§
§current: CurrentRevision
§expected: ExpectedRevision
Trait Implementations§
source§impl Clone for WrongExpectedVersion
impl Clone for WrongExpectedVersion
source§fn clone(&self) -> WrongExpectedVersion
fn clone(&self) -> WrongExpectedVersion
Returns a copy 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 WrongExpectedVersion
impl Debug for WrongExpectedVersion
source§impl Display for WrongExpectedVersion
impl Display for WrongExpectedVersion
source§impl Error for WrongExpectedVersion
impl Error for WrongExpectedVersion
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for WrongExpectedVersion
impl PartialEq for WrongExpectedVersion
source§fn eq(&self, other: &WrongExpectedVersion) -> bool
fn eq(&self, other: &WrongExpectedVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WrongExpectedVersion
impl Eq for WrongExpectedVersion
impl StructuralPartialEq for WrongExpectedVersion
Auto Trait Implementations§
impl RefUnwindSafe for WrongExpectedVersion
impl Send for WrongExpectedVersion
impl Sync for WrongExpectedVersion
impl Unpin for WrongExpectedVersion
impl UnwindSafe for WrongExpectedVersion
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<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.§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
Checks if this value is equivalent to the given key. Read more
§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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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