pub struct NewBlocks {
pub imported: Vec<H256>,
pub invalid: Vec<H256>,
pub route: ChainRoute,
pub sealed: Vec<H256>,
pub proposed: Vec<Bytes>,
pub duration: Duration,
pub has_more_blocks_to_import: bool,
}Expand description
Used by ChainNotify new_blocks()
Fields
imported: Vec<H256>Imported blocks
invalid: Vec<H256>Invalid blocks
route: ChainRouteRoute
sealed: Vec<H256>Sealed
proposed: Vec<Bytes>Block bytes.
duration: DurationDuration
has_more_blocks_to_import: boolHas more blocks to import
Implementations
Auto Trait Implementations
impl RefUnwindSafe for NewBlocks
impl Send for NewBlocks
impl Sync for NewBlocks
impl Unpin for NewBlocks
impl UnwindSafe for NewBlocks
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more