pub struct Precommit<H, N> {
pub target_hash: H,
pub target_number: N,
}Expand description
A precommit for a block and its ancestors.
Fields§
§target_hash: HThe target block’s hash.
target_number: NThe target block’s number
Implementations§
Trait Implementations§
impl<H: Eq, N: Eq> Eq for Precommit<H, N>
impl<H, N> StructuralPartialEq for Precommit<H, N>
Auto Trait Implementations§
impl<H, N> Freeze for Precommit<H, N>
impl<H, N> RefUnwindSafe for Precommit<H, N>where
H: RefUnwindSafe,
N: RefUnwindSafe,
impl<H, N> Send for Precommit<H, N>
impl<H, N> Sync for Precommit<H, N>
impl<H, N> Unpin for Precommit<H, N>
impl<H, N> UnwindSafe for Precommit<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