Struct ethp2p::BlockHeaders
source · [−]pub struct BlockHeaders(pub Vec<Header>);
Expand description
The response to GetBlockHeaders
, containing headers if any headers were found.
Tuple Fields
0: Vec<Header>
The requested headers.
Trait Implementations
sourceimpl Clone for BlockHeaders
impl Clone for BlockHeaders
sourcefn clone(&self) -> BlockHeaders
fn clone(&self) -> BlockHeaders
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 BlockHeaders
impl Debug for BlockHeaders
sourceimpl Encodable for BlockHeaders
impl Encodable for BlockHeaders
sourceimpl From<Vec<Header, Global>> for BlockHeaders
impl From<Vec<Header, Global>> for BlockHeaders
sourceimpl PartialEq<BlockHeaders> for BlockHeaders
impl PartialEq<BlockHeaders> for BlockHeaders
sourcefn eq(&self, other: &BlockHeaders) -> bool
fn eq(&self, other: &BlockHeaders) -> bool
impl Eq for BlockHeaders
impl StructuralEq for BlockHeaders
impl StructuralPartialEq for BlockHeaders
Auto Trait Implementations
impl RefUnwindSafe for BlockHeaders
impl Send for BlockHeaders
impl Sync for BlockHeaders
impl Unpin for BlockHeaders
impl UnwindSafe for BlockHeaders
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