pub struct MainNetwork;
Expand description
Marker struct for the production network.
Trait Implementations§
Source§impl Clone for MainNetwork
impl Clone for MainNetwork
Source§fn clone(&self) -> MainNetwork
fn clone(&self) -> MainNetwork
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 MainNetwork
impl Debug for MainNetwork
Source§impl DynamicUsage for MainNetwork
impl DynamicUsage for MainNetwork
Source§impl Parameters for MainNetwork
impl Parameters for MainNetwork
Source§fn network_type(&self) -> NetworkType
fn network_type(&self) -> NetworkType
Returns the type of network configured by this set of consensus parameters.
Source§fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>
fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>
Returns the activation height for a particular network upgrade,
if an activation height has been set.
Source§fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool
fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool
Determines whether the specified network upgrade is active as of the
provided block height on the network to which this Parameters value applies.
Source§impl PartialEq for MainNetwork
impl PartialEq for MainNetwork
impl Copy for MainNetwork
impl Eq for MainNetwork
impl StructuralPartialEq for MainNetwork
Auto Trait Implementations§
impl Freeze for MainNetwork
impl RefUnwindSafe for MainNetwork
impl Send for MainNetwork
impl Sync for MainNetwork
impl Unpin for MainNetwork
impl UnwindSafe for MainNetwork
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<P> NetworkConstants for Pwhere
P: Parameters,
impl<P> NetworkConstants for Pwhere
P: Parameters,
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§fn hrp_unified_address(&self) -> &'static str
fn hrp_unified_address(&self) -> &'static str
The HRP for a Bech32m-encoded mainnet Unified Address. Read more
Source§fn hrp_unified_fvk(&self) -> &'static str
fn hrp_unified_fvk(&self) -> &'static str
The HRP for a Bech32m-encoded mainnet Unified FVK. Read more
Source§fn hrp_unified_ivk(&self) -> &'static str
fn hrp_unified_ivk(&self) -> &'static str
The HRP for a Bech32m-encoded mainnet Unified IVK. Read more