Struct finality_grandpa::PrimaryPropose
source · pub struct PrimaryPropose<H, N> {
pub target_hash: H,
pub target_number: N,
}
Expand description
A primary proposed block, this is a broadcast of the last round’s estimate.
Fields§
§target_hash: H
The target block’s hash.
target_number: N
The target block’s number
Implementations§
source§impl<H, N> PrimaryPropose<H, N>
impl<H, N> PrimaryPropose<H, N>
Trait Implementations§
source§impl<H: Clone, N: Clone> Clone for PrimaryPropose<H, N>
impl<H: Clone, N: Clone> Clone for PrimaryPropose<H, N>
source§fn clone(&self) -> PrimaryPropose<H, N>
fn clone(&self) -> PrimaryPropose<H, N>
Returns a copy 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<H: PartialEq, N: PartialEq> PartialEq<PrimaryPropose<H, N>> for PrimaryPropose<H, N>
impl<H: PartialEq, N: PartialEq> PartialEq<PrimaryPropose<H, N>> for PrimaryPropose<H, N>
source§fn eq(&self, other: &PrimaryPropose<H, N>) -> bool
fn eq(&self, other: &PrimaryPropose<H, N>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.