pub enum SyncRequest {
GetBlocks {
from_height: Height,
to_height: Height,
},
GetStatus,
GetSnapshots,
GetSnapshotChunk {
height: Height,
chunk_index: u32,
},
}Expand description
Sync request sent by a node that needs to catch up
Variants§
GetBlocks
Request blocks in [from_height, to_height] inclusive
GetStatus
Request the peer’s current tip status
GetSnapshots
Request the list of available state snapshots
GetSnapshotChunk
Request a specific chunk of a snapshot at the given height
Trait Implementations§
Source§impl Clone for SyncRequest
impl Clone for SyncRequest
Source§fn clone(&self) -> SyncRequest
fn clone(&self) -> SyncRequest
Returns a duplicate 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 SyncRequest
impl Debug for SyncRequest
Source§impl<'de> Deserialize<'de> for SyncRequest
impl<'de> Deserialize<'de> for SyncRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SyncRequest
impl RefUnwindSafe for SyncRequest
impl Send for SyncRequest
impl Sync for SyncRequest
impl Unpin for SyncRequest
impl UnsafeUnpin for SyncRequest
impl UnwindSafe for SyncRequest
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