pub enum Network {
Mainnet,
Testnet3,
Testnet4,
Signet,
Regtest,
}
Expand description
Bitcoin network used by the address
Variants§
Mainnet
Bitcoin mainnet
Testnet3
Bitcoin testnet3
Testnet4
Bitcoin testnet4
Signet
Bitcoin signet
Regtest
Bitcoin regtest networks
Implementations§
Trait Implementations§
Source§impl From<Network> for AddressNetwork
impl From<Network> for AddressNetwork
Source§fn from(network: Network) -> AddressNetwork
fn from(network: Network) -> AddressNetwork
Converts to this type from the input type.
Source§impl Ord for Network
impl Ord for Network
Source§impl PartialOrd for Network
impl PartialOrd for Network
impl Copy for Network
impl Eq for Network
impl StructuralPartialEq for Network
Auto Trait Implementations§
impl Freeze for Network
impl RefUnwindSafe for Network
impl Send for Network
impl Sync for Network
impl Unpin for Network
impl UnwindSafe for Network
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.