Struct ethcore::client::ChainRoute  [−][src]
pub struct ChainRoute { /* fields omitted */ }A complete chain enacted retracted route.
Methods
impl ChainRoute[src] 
impl ChainRoutepub fn new(route: Vec<(H256, ChainRouteType)>) -> Self[src] 
pub fn new(route: Vec<(H256, ChainRouteType)>) -> SelfCreate 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 ChainRoutefn default() -> ChainRoute[src] 
fn default() -> ChainRouteReturns the "default value" for a type. Read more
impl Clone for ChainRoute[src] 
impl Clone for ChainRoutefn clone(&self) -> ChainRoute[src] 
fn clone(&self) -> ChainRouteReturns 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 ChainRoutefn from(import_results: &'a [ImportRoute]) -> ChainRoute[src] 
fn from(import_results: &'a [ImportRoute]) -> ChainRoutePerforms the conversion.
Auto Trait Implementations
impl Send for ChainRoute
impl Send for ChainRouteimpl Sync for ChainRoute
impl Sync for ChainRoute