pub struct BlockLocator {
pub version: u32,
pub block_locator_hashes: Vec<Hash256>,
pub hash_stop: Hash256,
}
Expand description
Specifies which blocks to return
Fields§
§version: u32
Protocol version of this node
block_locator_hashes: Vec<Hash256>
Block hash to start after. First found will be used.
hash_stop: Hash256
Block hash to stop at, or none if NO_HASH_STOP.
Implementations§
Trait Implementations§
Source§impl Clone for BlockLocator
impl Clone for BlockLocator
Source§fn clone(&self) -> BlockLocator
fn clone(&self) -> BlockLocator
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 BlockLocator
impl Debug for BlockLocator
Source§impl Default for BlockLocator
impl Default for BlockLocator
Source§fn default() -> BlockLocator
fn default() -> BlockLocator
Returns the “default value” for a type. Read more
Source§impl Hash for BlockLocator
impl Hash for BlockLocator
Source§impl PartialEq for BlockLocator
impl PartialEq for BlockLocator
Source§impl Payload<BlockLocator> for BlockLocator
impl Payload<BlockLocator> for BlockLocator
Source§impl Serializable<BlockLocator> for BlockLocator
impl Serializable<BlockLocator> for BlockLocator
impl Eq for BlockLocator
impl StructuralPartialEq for BlockLocator
Auto Trait Implementations§
impl Freeze for BlockLocator
impl RefUnwindSafe for BlockLocator
impl Send for BlockLocator
impl Sync for BlockLocator
impl Unpin for BlockLocator
impl UnwindSafe for BlockLocator
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