pub struct SyncRequest {
pub want: Vec<Hash>,
pub have: Vec<Hash>,
pub limit: Option<usize>,
}Expand description
Request to fetch nodes from a peer.
Fields§
§want: Vec<Hash>CIDs of nodes we need.
have: Vec<Hash>Our current heads (for the peer to determine what to send).
limit: Option<usize>Maximum number of nodes to return.
Implementations§
Source§impl SyncRequest
impl SyncRequest
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 moreAuto Trait Implementations§
impl Freeze for SyncRequest
impl RefUnwindSafe for SyncRequest
impl Send for SyncRequest
impl Sync for SyncRequest
impl Unpin 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