Struct ethp2p::NewBlockHashes
source · [−]pub struct NewBlockHashes(pub Vec<BlockHashNumber>);
Expand description
This informs peers of new blocks that have appeared on the network.
Tuple Fields
0: Vec<BlockHashNumber>
New block hashes and the block number for each blockhash.
Clients should request blocks using a GetBlockBodies
message.
Trait Implementations
sourceimpl Clone for NewBlockHashes
impl Clone for NewBlockHashes
sourcefn clone(&self) -> NewBlockHashes
fn clone(&self) -> NewBlockHashes
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for NewBlockHashes
impl Debug for NewBlockHashes
sourceimpl Decodable for NewBlockHashes
impl Decodable for NewBlockHashes
sourceimpl Encodable for NewBlockHashes
impl Encodable for NewBlockHashes
sourceimpl From<NewBlockHashes> for EthMessage
impl From<NewBlockHashes> for EthMessage
sourcefn from(t: NewBlockHashes) -> Self
fn from(t: NewBlockHashes) -> Self
Converts to this type from the input type.
sourceimpl From<NewBlockHashes> for Request
impl From<NewBlockHashes> for Request
sourcefn from(t: NewBlockHashes) -> Self
fn from(t: NewBlockHashes) -> Self
Converts to this type from the input type.
sourceimpl From<NewBlockHashes> for Vec<BlockHashNumber>
impl From<NewBlockHashes> for Vec<BlockHashNumber>
sourcefn from(v: NewBlockHashes) -> Self
fn from(v: NewBlockHashes) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<BlockHashNumber, Global>> for NewBlockHashes
impl From<Vec<BlockHashNumber, Global>> for NewBlockHashes
sourcefn from(v: Vec<BlockHashNumber>) -> Self
fn from(v: Vec<BlockHashNumber>) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<NewBlockHashes> for NewBlockHashes
impl PartialEq<NewBlockHashes> for NewBlockHashes
sourcefn eq(&self, other: &NewBlockHashes) -> bool
fn eq(&self, other: &NewBlockHashes) -> bool
impl Eq for NewBlockHashes
impl StructuralEq for NewBlockHashes
impl StructuralPartialEq for NewBlockHashes
Auto Trait Implementations
impl RefUnwindSafe for NewBlockHashes
impl Send for NewBlockHashes
impl Sync for NewBlockHashes
impl Unpin for NewBlockHashes
impl UnwindSafe for NewBlockHashes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more