Enum grin_core::global::ChainTypes
source · pub enum ChainTypes {
AutomatedTesting,
UserTesting,
Testnet,
Mainnet,
}
Expand description
Types of chain a server can run with, dictates the genesis block and and mining parameters used.
Variants§
AutomatedTesting
For CI testing
UserTesting
For User testing
Testnet
Protocol testing network
Mainnet
Main production network
Implementations§
Trait Implementations§
source§impl Clone for ChainTypes
impl Clone for ChainTypes
source§fn clone(&self) -> ChainTypes
fn clone(&self) -> ChainTypes
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ChainTypes
impl Debug for ChainTypes
source§impl Default for ChainTypes
impl Default for ChainTypes
source§fn default() -> ChainTypes
fn default() -> ChainTypes
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ChainTypes
impl<'de> Deserialize<'de> for ChainTypes
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ChainTypes
impl PartialEq for ChainTypes
source§fn eq(&self, other: &ChainTypes) -> bool
fn eq(&self, other: &ChainTypes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ChainTypes
impl Serialize for ChainTypes
impl Copy for ChainTypes
impl StructuralPartialEq for ChainTypes
Auto Trait Implementations§
impl Freeze for ChainTypes
impl RefUnwindSafe for ChainTypes
impl Send for ChainTypes
impl Sync for ChainTypes
impl Unpin for ChainTypes
impl UnwindSafe for ChainTypes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more