pub struct CatchUp<H, N, S, Id> {
pub round_number: u64,
pub prevotes: Vec<SignedPrevote<H, N, S, Id>>,
pub precommits: Vec<SignedPrecommit<H, N, S, Id>>,
pub base_hash: H,
pub base_number: N,
}
Expand description
A catch-up message, which is an aggregate of prevotes and precommits necessary to complete a round.
This message contains a “base”, which is a block all of the vote-targets are a descendent of.
Fields§
§round_number: u64
Round number.
prevotes: Vec<SignedPrevote<H, N, S, Id>>
Prevotes for target block or any block after it that justify this catch-up.
precommits: Vec<SignedPrecommit<H, N, S, Id>>
Precommits for target block or any block after it that justify this catch-up.
base_hash: H
The base hash. See struct docs.
base_number: N
The base number. See struct docs.
Trait Implementations§
Source§impl<H: PartialEq, N: PartialEq, S: PartialEq, Id: PartialEq> PartialEq for CatchUp<H, N, S, Id>
impl<H: PartialEq, N: PartialEq, S: PartialEq, Id: PartialEq> PartialEq for CatchUp<H, N, S, Id>
impl<H: Eq, N: Eq, S: Eq, Id: Eq> Eq for CatchUp<H, N, S, Id>
impl<H, N, S, Id> StructuralPartialEq for CatchUp<H, N, S, Id>
Auto Trait Implementations§
impl<H, N, S, Id> Freeze for CatchUp<H, N, S, Id>
impl<H, N, S, Id> RefUnwindSafe for CatchUp<H, N, S, Id>
impl<H, N, S, Id> Send for CatchUp<H, N, S, Id>
impl<H, N, S, Id> Sync for CatchUp<H, N, S, Id>
impl<H, N, S, Id> Unpin for CatchUp<H, N, S, Id>
impl<H, N, S, Id> UnwindSafe for CatchUp<H, N, S, Id>
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