#[repr(i32)]pub enum NetworkEnvironment {
Main = 0,
Test = 1,
Dev = 2,
Staging = 3,
Perf = 4,
Integration = 5,
Local = 6,
Debug = 7,
All = 8,
Predev = 9,
}Variants§
Main = 0
Production release, using real data and currency
Test = 1
Pre-production release, used for integration testing with release version before updating main net
Dev = 2
Latest dev branch code, continuously updated from latest build, unstable and non-release version
Staging = 3
Latest staging branch code, continuously updated but considered stable, upon verification is rolled to test net
Perf = 4
Performance testing network, used for debugging performance issues and not tied to a particular version or stage Can be manually set as for debugging, generally paired with staging code.
Integration = 5
Manually deployed network over arbitrary machines
Local = 6
Designation for an entire network running as local processes not connecting to external services
Debug = 7
Designation for an entire network running within a single process. Either with mock-ups or other testing harnesses – generally used for debugging within an IDE,
All = 8
Operations which can potentially span all networks, like a host manager or infrastructure configuration.
Predev = 9
Testing branch before dev, force push commits here for manual debugging, one user at a time.
Implementations§
source§impl NetworkEnvironment
impl NetworkEnvironment
pub fn to_std_string(&self) -> String
pub fn parse(from_str: String) -> Self
pub fn parse_safe(from_str: String) -> Result<Self, ErrorInfo>
pub fn status_networks() -> Vec<NetworkEnvironment>
pub fn gui_networks() -> Vec<NetworkEnvironment>
pub fn local_debug(&self) -> bool
pub fn is_all(&self) -> bool
pub fn is_main(&self) -> bool
pub fn default_port_offset(&self) -> u16
Trait Implementations§
source§impl Clone for NetworkEnvironment
impl Clone for NetworkEnvironment
source§fn clone(&self) -> NetworkEnvironment
fn clone(&self) -> NetworkEnvironment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for NetworkEnvironment
impl Debug for NetworkEnvironment
source§impl Default for NetworkEnvironment
impl Default for NetworkEnvironment
source§fn default() -> NetworkEnvironment
fn default() -> NetworkEnvironment
source§impl<'de> Deserialize<'de> for NetworkEnvironment
impl<'de> Deserialize<'de> for NetworkEnvironment
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>,
source§impl From<NetworkEnvironment> for i32
impl From<NetworkEnvironment> for i32
source§fn from(value: NetworkEnvironment) -> i32
fn from(value: NetworkEnvironment) -> i32
source§impl FromStr for NetworkEnvironment
impl FromStr for NetworkEnvironment
source§impl Hash for NetworkEnvironment
impl Hash for NetworkEnvironment
source§impl IntoEnumIterator for NetworkEnvironment
impl IntoEnumIterator for NetworkEnvironment
type Iterator = NetworkEnvironmentIter
fn iter() -> NetworkEnvironmentIter ⓘ
source§impl Ord for NetworkEnvironment
impl Ord for NetworkEnvironment
source§fn cmp(&self, other: &NetworkEnvironment) -> Ordering
fn cmp(&self, other: &NetworkEnvironment) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq for NetworkEnvironment
impl PartialEq for NetworkEnvironment
source§fn eq(&self, other: &NetworkEnvironment) -> bool
fn eq(&self, other: &NetworkEnvironment) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialOrd for NetworkEnvironment
impl PartialOrd for NetworkEnvironment
source§fn partial_cmp(&self, other: &NetworkEnvironment) -> Option<Ordering>
fn partial_cmp(&self, other: &NetworkEnvironment) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more