Struct common_types::tree_route::TreeRoute
source · [−]pub struct TreeRoute {
pub blocks: Vec<H256>,
pub ancestor: H256,
pub index: usize,
pub is_from_route_finalized: bool,
}
Expand description
Represents a tree route between from
block and to
block:
Fields
blocks: Vec<H256>
A vector of hashes of all blocks, ordered from from
to to
.
ancestor: H256
Best common ancestor of these blocks.
index: usize
An index where best common ancestor would be.
is_from_route_finalized: bool
Whether it has finalized blocks from from
(inclusive) to ancestor
(exclusive).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TreeRoute
impl Send for TreeRoute
impl Sync for TreeRoute
impl Unpin for TreeRoute
impl UnwindSafe for TreeRoute
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