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 moreimpl<H: Eq, N: Eq> Eq for PrimaryPropose<H, N>
impl<H, N> StructuralPartialEq for PrimaryPropose<H, N>
Auto Trait Implementations§
impl<H, N> Freeze for PrimaryPropose<H, N>
impl<H, N> RefUnwindSafe for PrimaryPropose<H, N>where
H: RefUnwindSafe,
N: RefUnwindSafe,
impl<H, N> Send for PrimaryPropose<H, N>
impl<H, N> Sync for PrimaryPropose<H, N>
impl<H, N> Unpin for PrimaryPropose<H, N>
impl<H, N> UnwindSafe for PrimaryPropose<H, N>where
H: UnwindSafe,
N: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more