Struct ethp2p::BlockBodies
source · [−]pub struct BlockBodies(pub Vec<BlockBody>);
Expand description
The response to GetBlockBodies
, containing the block bodies that the peer knows about if
any were found.
Tuple Fields
0: Vec<BlockBody>
The requested block bodies, each of which should correspond to a hash in the request.
Trait Implementations
sourceimpl Clone for BlockBodies
impl Clone for BlockBodies
sourcefn clone(&self) -> BlockBodies
fn clone(&self) -> BlockBodies
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 BlockBodies
impl Debug for BlockBodies
sourceimpl Encodable for BlockBodies
impl Encodable for BlockBodies
sourceimpl From<Vec<BlockBody, Global>> for BlockBodies
impl From<Vec<BlockBody, Global>> for BlockBodies
sourceimpl PartialEq<BlockBodies> for BlockBodies
impl PartialEq<BlockBodies> for BlockBodies
sourcefn eq(&self, other: &BlockBodies) -> bool
fn eq(&self, other: &BlockBodies) -> bool
impl Eq for BlockBodies
impl StructuralEq for BlockBodies
impl StructuralPartialEq for BlockBodies
Auto Trait Implementations
impl RefUnwindSafe for BlockBodies
impl Send for BlockBodies
impl Sync for BlockBodies
impl Unpin for BlockBodies
impl UnwindSafe for BlockBodies
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