pub struct SyncPayload {
pub entries: Vec<Entry>,
pub need: Vec<Hash>,
}Expand description
A sync response — entries the recipient should merge.
Contains the entries the peer is missing (not in their bloom filter and not reachable from their heads).
Fields§
§entries: Vec<Entry>Entries the peer is missing, in topological (causal) order.
need: Vec<Hash>Hashes the sender still needs (explicit request for false-positive resolution).
Implementations§
Trait Implementations§
Source§impl Clone for SyncPayload
impl Clone for SyncPayload
Source§fn clone(&self) -> SyncPayload
fn clone(&self) -> SyncPayload
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 SyncPayload
impl Debug for SyncPayload
Source§impl<'de> Deserialize<'de> for SyncPayload
impl<'de> Deserialize<'de> for SyncPayload
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 SyncPayload
impl RefUnwindSafe for SyncPayload
impl Send for SyncPayload
impl Sync for SyncPayload
impl Unpin for SyncPayload
impl UnsafeUnpin for SyncPayload
impl UnwindSafe for SyncPayload
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