Struct finality_grandpa::CompactCommit
source · pub struct CompactCommit<H, N, S, Id> {
pub target_hash: H,
pub target_number: N,
pub precommits: Vec<Precommit<H, N>>,
pub auth_data: CommitAuthData<S, Id>,
}
Expand description
A commit message with compact representation of authentication data.
Fields
target_hash: H
The target block’s hash.
target_number: N
The target block’s number.
precommits: Vec<Precommit<H, N>>
Precommits for target block or any block after it that justify this commit.
auth_data: CommitAuthData<S, Id>
Authentication data for the commit.
Trait Implementations
sourceimpl<H: Clone, N: Clone, S: Clone, Id: Clone> Clone for CompactCommit<H, N, S, Id>
impl<H: Clone, N: Clone, S: Clone, Id: Clone> Clone for CompactCommit<H, N, S, Id>
sourcefn clone(&self) -> CompactCommit<H, N, S, Id>
fn clone(&self) -> CompactCommit<H, N, S, Id>
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<H: Clone, N: Clone, S, Id> From<Commit<H, N, S, Id>> for CompactCommit<H, N, S, Id>
impl<H: Clone, N: Clone, S, Id> From<Commit<H, N, S, Id>> for CompactCommit<H, N, S, Id>
sourcefn from(commit: Commit<H, N, S, Id>) -> CompactCommit<H, N, S, Id>
fn from(commit: Commit<H, N, S, Id>) -> CompactCommit<H, N, S, Id>
Converts to this type from the input type.
sourceimpl<H, N, S, Id> From<CompactCommit<H, N, S, Id>> for Commit<H, N, S, Id>
impl<H, N, S, Id> From<CompactCommit<H, N, S, Id>> for Commit<H, N, S, Id>
sourcefn from(commit: CompactCommit<H, N, S, Id>) -> Commit<H, N, S, Id>
fn from(commit: CompactCommit<H, N, S, Id>) -> Commit<H, N, S, Id>
Converts to this type from the input type.
sourceimpl<H: PartialEq, N: PartialEq, S: PartialEq, Id: PartialEq> PartialEq<CompactCommit<H, N, S, Id>> for CompactCommit<H, N, S, Id>
impl<H: PartialEq, N: PartialEq, S: PartialEq, Id: PartialEq> PartialEq<CompactCommit<H, N, S, Id>> for CompactCommit<H, N, S, Id>
sourcefn eq(&self, other: &CompactCommit<H, N, S, Id>) -> bool
fn eq(&self, other: &CompactCommit<H, N, S, Id>) -> bool
impl<H: Eq, N: Eq, S: Eq, Id: Eq> Eq for CompactCommit<H, N, S, Id>
impl<H, N, S, Id> StructuralEq for CompactCommit<H, N, S, Id>
impl<H, N, S, Id> StructuralPartialEq for CompactCommit<H, N, S, Id>
Auto Trait Implementations
impl<H, N, S, Id> RefUnwindSafe for CompactCommit<H, N, S, Id>where
H: RefUnwindSafe,
Id: RefUnwindSafe,
N: RefUnwindSafe,
S: RefUnwindSafe,
impl<H, N, S, Id> Send for CompactCommit<H, N, S, Id>where
H: Send,
Id: Send,
N: Send,
S: Send,
impl<H, N, S, Id> Sync for CompactCommit<H, N, S, Id>where
H: Sync,
Id: Sync,
N: Sync,
S: Sync,
impl<H, N, S, Id> Unpin for CompactCommit<H, N, S, Id>where
H: Unpin,
Id: Unpin,
N: Unpin,
S: Unpin,
impl<H, N, S, Id> UnwindSafe for CompactCommit<H, N, S, Id>where
H: UnwindSafe,
Id: UnwindSafe,
N: UnwindSafe,
S: UnwindSafe,
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