Enum monero::network::Network [−][src]
pub enum Network { Mainnet, Stagenet, Testnet, }
Expand description
The list of the existing Monero networks.
Network implements Default
and returns Network::Mainnet
.
Variants
Mainnet is the “production” network and blockchain.
Stagenet is technically equivalent to mainnet, both in terms of features and consensus rules.
Testnet is the “experimental” network and blockchain where things get released long before mainnet.
Implementations
impl Network
[src]
impl Network
[src]pub fn as_u8(self, addr_type: &AddressType) -> u8
[src]
pub fn as_u8(self, addr_type: &AddressType) -> u8
[src]Get the associated magic byte given an address type.
Source: monero/src/cryptonote_config.h
Trait Implementations
impl Copy for Network
[src]
impl Eq for Network
[src]
impl StructuralEq for Network
[src]
impl StructuralPartialEq for Network
[src]
Auto Trait Implementations
impl RefUnwindSafe for Network
impl Send for Network
impl Sync for Network
impl Unpin for Network
impl UnwindSafe for Network
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more