pub enum AddressNetwork {
Mainnet,
Testnet,
Regtest,
}
Expand description
Bitcoin network used by the address
Variants
Mainnet
Bitcoin mainnet
Testnet
Bitcoin testnet and signet
Regtest
Bitcoin regtest networks
Trait Implementations
sourceimpl Clone for AddressNetwork
impl Clone for AddressNetwork
sourcefn clone(&self) -> AddressNetwork
fn clone(&self) -> AddressNetwork
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AddressNetwork
impl Debug for AddressNetwork
sourceimpl Display for AddressNetwork
impl Display for AddressNetwork
sourceimpl From<Address> for AddressNetwork
impl From<Address> for AddressNetwork
sourcefn from(address: Address) -> AddressNetwork
fn from(address: Address) -> AddressNetwork
Converts to this type from the input type.
sourceimpl From<Network> for AddressNetwork
impl From<Network> for AddressNetwork
sourcefn from(network: Network) -> AddressNetwork
fn from(network: Network) -> AddressNetwork
Converts to this type from the input type.
sourceimpl FromStr for AddressNetwork
impl FromStr for AddressNetwork
type Err = AddressParseError
type Err = AddressParseError
The associated error which can be returned from parsing.
sourcefn from_str(s: &str) -> Result<AddressNetwork, <AddressNetwork as FromStr>::Err>
fn from_str(s: &str) -> Result<AddressNetwork, <AddressNetwork as FromStr>::Err>
Parses a string s
to return a value of this type. Read more
sourceimpl Hash for AddressNetwork
impl Hash for AddressNetwork
sourceimpl Ord for AddressNetwork
impl Ord for AddressNetwork
sourceimpl PartialEq<AddressNetwork> for AddressNetwork
impl PartialEq<AddressNetwork> for AddressNetwork
sourceimpl PartialOrd<AddressNetwork> for AddressNetwork
impl PartialOrd<AddressNetwork> for AddressNetwork
sourcefn partial_cmp(&self, other: &AddressNetwork) -> Option<Ordering>
fn partial_cmp(&self, other: &AddressNetwork) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for AddressNetwork
impl Eq for AddressNetwork
impl StructuralEq for AddressNetwork
impl StructuralPartialEq for AddressNetwork
Auto Trait Implementations
impl RefUnwindSafe for AddressNetwork
impl Send for AddressNetwork
impl Sync for AddressNetwork
impl Unpin for AddressNetwork
impl UnwindSafe for AddressNetwork
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more