#[repr(i32)]pub enum ApplySnapshotChunkResult {
Unknown = 0,
Accept = 1,
Abort = 2,
Retry = 3,
RetrySnapshot = 4,
RejectSnapshot = 5,
}
Expand description
The result of applying a snapshot chunk.
Variants§
Unknown = 0
Unknown result, abort all snapshot restoration.
Accept = 1
The chunk was accepted.
Abort = 2
Abort snapshot restoration, and don’t try any other snapshots.
Retry = 3
Reapply this chunk, combine with
refetch_chunks
and
reject_senders
as appropriate.
RetrySnapshot = 4
Restart this snapshot from
OfferSnapshot
,
reusing chunks unless instructed otherwise.
RejectSnapshot = 5
Reject this snapshot, try a different one.
Trait Implementations§
Source§impl Clone for ApplySnapshotChunkResult
impl Clone for ApplySnapshotChunkResult
Source§fn clone(&self) -> ApplySnapshotChunkResult
fn clone(&self) -> ApplySnapshotChunkResult
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 ApplySnapshotChunkResult
impl Debug for ApplySnapshotChunkResult
Source§impl Default for ApplySnapshotChunkResult
impl Default for ApplySnapshotChunkResult
Source§impl Hash for ApplySnapshotChunkResult
impl Hash for ApplySnapshotChunkResult
Source§impl PartialEq for ApplySnapshotChunkResult
impl PartialEq for ApplySnapshotChunkResult
impl Copy for ApplySnapshotChunkResult
impl Eq for ApplySnapshotChunkResult
impl StructuralPartialEq for ApplySnapshotChunkResult
Auto Trait Implementations§
impl Freeze for ApplySnapshotChunkResult
impl RefUnwindSafe for ApplySnapshotChunkResult
impl Send for ApplySnapshotChunkResult
impl Sync for ApplySnapshotChunkResult
impl Unpin for ApplySnapshotChunkResult
impl UnwindSafe for ApplySnapshotChunkResult
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