Struct tendermint::abci::response::ApplySnapshotChunk
source[−]pub struct ApplySnapshotChunk {
pub result: ApplySnapshotChunkResult,
pub refetch_chunks: Vec<u32>,
pub reject_senders: Vec<String>,
}
Expand description
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.
Fields
result: ApplySnapshotChunkResult
The result of applying the snapshot chunk.
refetch_chunks: Vec<u32>
Refetch and reapply the given chunks, regardless of result
.
Only the listed chunks will be refetched, and reapplied in sequential order.
reject_senders: Vec<String>
Reject the given P2P senders, regardless of result
.
Any chunks already applied will not be refetched unless explicitly requested, but queued chunks from these senders will be discarded, and new chunks or other snapshots rejected.
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Encode into a buffer in Protobuf format. Read more
Encode with a length-delimiter to a buffer in Protobuf format. Read more
Constructor that attempts to decode an instance from a buffer. Read more
Constructor that attempts to decode a length-delimited instance from the buffer. Read more
Returns the encoded length of the message without a length delimiter. Read more
Encodes into a Protobuf-encoded Vec<u8>
.
Constructor that attempts to decode a Protobuf-encoded instance from a
Vec<u8>
(or equivalent). Read more
Encode with a length-delimiter to a Vec<u8>
Protobuf-encoded message.
Auto Trait Implementations
impl RefUnwindSafe for ApplySnapshotChunk
impl Send for ApplySnapshotChunk
impl Sync for ApplySnapshotChunk
impl Unpin for ApplySnapshotChunk
impl UnwindSafe for ApplySnapshotChunk
Blanket Implementations
Mutably borrows from an owned value. Read more