pub struct BlockRequest {
pub block_hash: [u8; 32],
pub peer_id: u64,
pub requested_at: u64,
pub height: u32,
}Expand description
A single in-flight block request.
Fields§
§block_hash: [u8; 32]The hash of the block being requested (32 bytes).
peer_id: u64Peer ID that was assigned this request.
requested_at: u64Unix timestamp when the request was sent.
height: u32Expected block height (for ordering and reorg detection).
Trait Implementations§
Source§impl Clone for BlockRequest
impl Clone for BlockRequest
Source§fn clone(&self) -> BlockRequest
fn clone(&self) -> BlockRequest
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 BlockRequest
impl RefUnwindSafe for BlockRequest
impl Send for BlockRequest
impl Sync for BlockRequest
impl Unpin for BlockRequest
impl UnsafeUnpin for BlockRequest
impl UnwindSafe for BlockRequest
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