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<'de> Deserialize<'de> for SnapshotMismatch
impl<'de> Deserialize<'de> for SnapshotMismatch
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 for SnapshotMismatch
impl PartialEq 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 ==
.source§impl Serialize for SnapshotMismatch
impl Serialize for SnapshotMismatch
impl Eq for SnapshotMismatch
impl StructuralPartialEq for SnapshotMismatch
Auto Trait Implementations§
impl Freeze for SnapshotMismatch
impl RefUnwindSafe for SnapshotMismatch
impl Send for SnapshotMismatch
impl Sync for SnapshotMismatch
impl Unpin for SnapshotMismatch
impl UnwindSafe for SnapshotMismatch
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