Enum bitcoin::network::constants::Network [−][src]
pub enum Network {
Bitcoin,
Testnet,
Signet,
Regtest,
}Expand description
The cryptocurrency to act on
Variants
Bitcoin
Classic Bitcoin
Testnet
Bitcoin’s testnet
Signet
Bitcoin’s signet
Regtest
Bitcoin’s regtest
Implementations
Creates a Network from the magic bytes.
Examples
use bitcoin::network::constants::Network;
assert_eq!(Some(Network::Bitcoin), Network::from_magic(0xD9B4BEF9));
assert_eq!(None, Network::from_magic(0xFFFFFFFF));Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Network
impl UnwindSafe for Network
Blanket Implementations
Mutably borrows from an owned value. Read more