Struct openraft::error::SnapshotMismatch
source · pub struct SnapshotMismatch {
pub expect: SnapshotSegmentId,
pub got: SnapshotSegmentId,
}
Fields§
§expect: SnapshotSegmentId
§got: SnapshotSegmentId
Trait Implementations§
source§impl Clone for SnapshotMismatch
impl Clone for SnapshotMismatch
source§fn clone(&self) -> SnapshotMismatch
fn clone(&self) -> SnapshotMismatch
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 SnapshotMismatch
impl Debug for SnapshotMismatch
source§impl Display for SnapshotMismatch
impl Display for SnapshotMismatch
source§impl Error for SnapshotMismatch
impl Error for SnapshotMismatch
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 From<SnapshotMismatch> for InstallSnapshotError
impl From<SnapshotMismatch> for InstallSnapshotError
source§fn from(source: SnapshotMismatch) -> Self
fn from(source: SnapshotMismatch) -> Self
Converts to this type from the input type.
source§impl PartialEq<SnapshotMismatch> for SnapshotMismatch
impl PartialEq<SnapshotMismatch> for SnapshotMismatch
source§fn eq(&self, other: &SnapshotMismatch) -> bool
fn eq(&self, other: &SnapshotMismatch) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SnapshotMismatch
impl StructuralEq for SnapshotMismatch
impl StructuralPartialEq for SnapshotMismatch
Auto Trait Implementations§
impl RefUnwindSafe for SnapshotMismatch
impl Send for SnapshotMismatch
impl Sync for SnapshotMismatch
impl Unpin for SnapshotMismatch
impl UnwindSafe for SnapshotMismatch
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.