Struct ethcore::client::ChainRoute
[−]
[src]
pub struct ChainRoute { /* fields omitted */ }
A complete chain enacted retracted route.
Methods
impl ChainRoute
[src]
impl ChainRoute
pub fn new(route: Vec<(H256, ChainRouteType)>) -> Self
[src]
pub fn new(route: Vec<(H256, ChainRouteType)>) -> Self
Create a new ChainRoute based on block hash and route type pairs.
pub fn into_enacted_retracted(self) -> (Vec<H256>, Vec<H256>)
[src]
pub fn into_enacted_retracted(self) -> (Vec<H256>, Vec<H256>)
Consume route and return the enacted retracted form.
pub fn enacted(&self) -> &[H256]
[src]
pub fn enacted(&self) -> &[H256]
All non-duplicate enacted blocks.
pub fn retracted(&self) -> &[H256]
[src]
pub fn retracted(&self) -> &[H256]
All non-duplicate retracted blocks.
pub fn route(&self) -> &[(H256, ChainRouteType)]
[src]
pub fn route(&self) -> &[(H256, ChainRouteType)]
All blocks in the route.
Trait Implementations
impl Default for ChainRoute
[src]
impl Default for ChainRoute
fn default() -> ChainRoute
[src]
fn default() -> ChainRoute
Returns the "default value" for a type. Read more
impl Clone for ChainRoute
[src]
impl Clone for ChainRoute
fn clone(&self) -> ChainRoute
[src]
fn clone(&self) -> ChainRoute
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> From<&'a [ImportRoute]> for ChainRoute
[src]
impl<'a> From<&'a [ImportRoute]> for ChainRoute
fn from(import_results: &'a [ImportRoute]) -> ChainRoute
[src]
fn from(import_results: &'a [ImportRoute]) -> ChainRoute
Performs the conversion.
Auto Trait Implementations
impl Send for ChainRoute
impl Send for ChainRoute
impl Sync for ChainRoute
impl Sync for ChainRoute