Enum sp_chain_spec::ChainType[][src]

pub enum ChainType {
    Development,
    Local,
    Live,
    Custom(String),
}

The type of a chain.

This can be used by tools to determine the type of a chain for displaying additional information or enabling additional features.

Variants

Development

A development chain that runs mainly on one node.

Local

A local chain that runs locally on multiple nodes for testing purposes.

Live

A live chain.

Custom(String)

Some custom chain type.

Trait Implementations

impl Clone for ChainType[src]

impl Debug for ChainType[src]

impl Default for ChainType[src]

impl<'de> Deserialize<'de> for ChainType[src]

impl PartialEq<ChainType> for ChainType[src]

impl Serialize for ChainType[src]

impl StructuralPartialEq for ChainType[src]

Auto Trait Implementations

impl RefUnwindSafe for ChainType

impl Send for ChainType

impl Sync for ChainType

impl Unpin for ChainType

impl UnwindSafe for ChainType

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.