pub enum SnapshotError {
ChunkOffset {
last_included_index: LogIndex,
last_included_term: Term,
expected_offset: u64,
received_offset: u64,
},
}Expand description
A snapshot transfer failed. The variant names the snapshot identity and the offsets that decided the failure (docs/ARCHITECTURE.md section 13).
Variants§
ChunkOffset
A chunk arrived at an offset other than the number of bytes already buffered for its snapshot identity (invariant N-02).
Trait Implementations§
Source§impl Clone for SnapshotError
impl Clone for SnapshotError
Source§impl Debug for SnapshotError
impl Debug for SnapshotError
Source§impl Display for SnapshotError
impl Display for SnapshotError
impl Eq for SnapshotError
Source§impl Error for SnapshotError
impl Error for SnapshotError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 SnapshotError
impl PartialEq for SnapshotError
impl StructuralPartialEq for SnapshotError
Auto Trait Implementations§
impl Forget for SnapshotError
impl Freeze for SnapshotError
impl Move for SnapshotError
impl RefUnwindSafe for SnapshotError
impl Send for SnapshotError
impl Sync for SnapshotError
impl Unpin for SnapshotError
impl UnsafeUnpin for SnapshotError
impl UnwindSafe for SnapshotError
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