pub enum SnapshotResponse {
ListSnapshots(ListSnapshots),
OfferSnapshot(OfferSnapshot),
LoadSnapshotChunk(LoadSnapshotChunk),
ApplySnapshotChunk(ApplySnapshotChunk),
}
Expand description
The snapshot category of ABCI responses.
Variants§
ListSnapshots(ListSnapshots)
Returns a list of local state snapshots.
OfferSnapshot(OfferSnapshot)
Returns the application’s response to a snapshot offer.
See also the OfferSnapshot
data type and the ABCI state sync documentation.
LoadSnapshotChunk(LoadSnapshotChunk)
Returns a snapshot chunk from the application.
ApplySnapshotChunk(ApplySnapshotChunk)
Returns the result of applying a snapshot chunk and associated data.
The application can choose to refetch chunks and/or ban P2P peers as appropriate. Tendermint will not do this unless instructed by the application.
Trait Implementations§
Source§impl Clone for SnapshotResponse
impl Clone for SnapshotResponse
Source§fn clone(&self) -> SnapshotResponse
fn clone(&self) -> SnapshotResponse
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 SnapshotResponse
impl Debug for SnapshotResponse
Source§impl From<SnapshotResponse> for Response
impl From<SnapshotResponse> for Response
Source§fn from(req: SnapshotResponse) -> Self
fn from(req: SnapshotResponse) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SnapshotResponse
impl PartialEq for SnapshotResponse
Source§impl TryFrom<Response> for SnapshotResponse
impl TryFrom<Response> for SnapshotResponse
impl Eq for SnapshotResponse
impl StructuralPartialEq for SnapshotResponse
Auto Trait Implementations§
impl !Freeze for SnapshotResponse
impl RefUnwindSafe for SnapshotResponse
impl Send for SnapshotResponse
impl Sync for SnapshotResponse
impl Unpin for SnapshotResponse
impl UnwindSafe for SnapshotResponse
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