Enum zcash_address::Network
source · pub enum Network {
Main,
Test,
Regtest,
}
Expand description
The enumeration of known Zcash network types.
Variants§
Main
Zcash Mainnet.
Test
Zcash Testnet.
Regtest
Private integration / regression testing, used in zcashd
.
For some address types there is no distinction between test and regtest encodings;
those will always be parsed as Network::Test
.
Trait Implementations§
source§impl Clone for NetworkType
impl Clone for NetworkType
source§fn clone(&self) -> NetworkType
fn clone(&self) -> NetworkType
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 NetworkType
impl Debug for NetworkType
source§impl DynamicUsage for NetworkType
impl DynamicUsage for NetworkType
source§impl Hash for NetworkType
impl Hash for NetworkType
source§impl NetworkConstants for NetworkType
impl NetworkConstants for NetworkType
source§fn hrp_sapling_extended_spending_key(&self) -> &'static str
fn hrp_sapling_extended_spending_key(&self) -> &'static str
Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys
for the network to which this NetworkConstants value applies. Read more
source§fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str
fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str
Returns the human-readable prefix for Bech32-encoded Sapling extended full
viewing keys for the network to which this NetworkConstants value applies. Read more
source§fn hrp_sapling_payment_address(&self) -> &'static str
fn hrp_sapling_payment_address(&self) -> &'static str
Returns the Bech32-encoded human-readable prefix for Sapling payment addresses
for the network to which this NetworkConstants value applies. Read more
source§fn b58_sprout_address_prefix(&self) -> [u8; 2]
fn b58_sprout_address_prefix(&self) -> [u8; 2]
Returns the human-readable prefix for Base58Check-encoded Sprout
payment addresses for the network to which this NetworkConstants value
applies. Read more
source§fn b58_pubkey_address_prefix(&self) -> [u8; 2]
fn b58_pubkey_address_prefix(&self) -> [u8; 2]
Returns the human-readable prefix for Base58Check-encoded transparent
pay-to-public-key-hash payment addresses for the network to which this NetworkConstants value
applies.
source§fn b58_script_address_prefix(&self) -> [u8; 2]
fn b58_script_address_prefix(&self) -> [u8; 2]
Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash
payment addresses for the network to which this NetworkConstants value applies.
source§fn hrp_tex_address(&self) -> &'static str
fn hrp_tex_address(&self) -> &'static str
Returns the Bech32-encoded human-readable prefix for TEX addresses, for the
network to which this
NetworkConstants
value applies. Read moresource§impl PartialEq for NetworkType
impl PartialEq for NetworkType
source§fn eq(&self, other: &NetworkType) -> bool
fn eq(&self, other: &NetworkType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for NetworkType
impl Eq for NetworkType
impl StructuralPartialEq for NetworkType
Auto Trait Implementations§
impl RefUnwindSafe for NetworkType
impl Send for NetworkType
impl Sync for NetworkType
impl Unpin for NetworkType
impl UnwindSafe for NetworkType
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