pub enum SnapshotError {
Show 19 variants
Backpressure,
Rejected {
last_chunk: u32,
},
RemoteRejection,
TransferFailed,
TransferTimeout,
OperationFailed(String),
Outdated,
ChecksumMismatch,
InvalidSnapshot,
InvalidChunkSequence,
ReceiverDisconnected,
InvalidFirstChunk,
EmptySnapshot,
IncompleteSnapshot,
ChunkOutOfRange(u32, u32),
OutOfOrderChunk,
MissingMetadata,
ChunkNotCached(u32),
BackgroundTaskDied,
}
Variants§
Backpressure
Rejected
Snapshot chunk rejected during installation
RemoteRejection
TransferFailed
Snapshot transfer failed due to stream/network issues
TransferTimeout
Snapshot transfer timeout due to network issues
OperationFailed(String)
Snapshot operation failed with context
Outdated
Snapshot is outdated and cannot be used
ChecksumMismatch
Snapshot file checksum mismatch
InvalidSnapshot
Invalid snapshot
InvalidChunkSequence
Invalid chunk sequence
ReceiverDisconnected
Stream receiver disconnected
InvalidFirstChunk
EmptySnapshot
IncompleteSnapshot
ChunkOutOfRange(u32, u32)
OutOfOrderChunk
MissingMetadata
ChunkNotCached(u32)
BackgroundTaskDied
Trait Implementations§
Source§impl Debug for SnapshotError
impl Debug for SnapshotError
Source§impl Display for SnapshotError
impl Display 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 From<SnapshotError> for ConsensusError
impl From<SnapshotError> for ConsensusError
Source§fn from(source: SnapshotError) -> Self
fn from(source: SnapshotError) -> Self
Converts to this type from the input type.
Source§impl From<SnapshotError> for Error
impl From<SnapshotError> for Error
Source§fn from(e: SnapshotError) -> Self
fn from(e: SnapshotError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SnapshotError
impl RefUnwindSafe for SnapshotError
impl Send for SnapshotError
impl Sync for SnapshotError
impl Unpin 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
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