pub struct SyncResponse {
pub nodes: Vec<MerkleNode>,
pub more: Vec<Hash>,
pub heads: Vec<Hash>,
}Expand description
Response containing nodes from a peer.
Fields§
§nodes: Vec<MerkleNode>Nodes being sent.
more: Vec<Hash>Additional nodes that could be sent (pagination).
heads: Vec<Hash>Peer’s current heads.
Implementations§
Source§impl SyncResponse
impl SyncResponse
Sourcepub fn with_nodes(nodes: Vec<MerkleNode>) -> Self
pub fn with_nodes(nodes: Vec<MerkleNode>) -> Self
Create a response with nodes.
Trait Implementations§
Source§impl Clone for SyncResponse
impl Clone for SyncResponse
Source§fn clone(&self) -> SyncResponse
fn clone(&self) -> SyncResponse
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 moreAuto Trait Implementations§
impl Freeze for SyncResponse
impl RefUnwindSafe for SyncResponse
impl Send for SyncResponse
impl Sync for SyncResponse
impl Unpin for SyncResponse
impl UnwindSafe for SyncResponse
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