Struct grin_p2p::msg::HeadersData
source · pub struct HeadersData {
pub headers: Vec<BlockHeader>,
pub remaining: u64,
}
Expand description
We receive 512 headers from a peer. But we process them in smaller batches of 32 headers. HeadersData wraps the current batch and a count of the headers remaining after this batch.
Fields§
§headers: Vec<BlockHeader>
Batch of headers currently being processed.
remaining: u64
Number of headers stil to be processed after this current batch. 0 indicates this is the final batch from the larger set of headers received from the peer.
Auto Trait Implementations§
impl Freeze for HeadersData
impl RefUnwindSafe for HeadersData
impl Send for HeadersData
impl Sync for HeadersData
impl Unpin for HeadersData
impl UnwindSafe for HeadersData
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