Enum bdk_chain::bitcoin::NetworkKind
pub enum NetworkKind {
Main,
Test,
}
Expand description
What kind of network we are on.
Variants§
Implementations§
§impl NetworkKind
impl NetworkKind
pub fn is_mainnet(&self) -> bool
pub fn is_mainnet(&self) -> bool
Returns true if this is real mainnet bitcoin.
Trait Implementations§
§impl Clone for NetworkKind
impl Clone for NetworkKind
§fn clone(&self) -> NetworkKind
fn clone(&self) -> NetworkKind
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 more§impl Debug for NetworkKind
impl Debug for NetworkKind
§impl From<Network> for NetworkKind
impl From<Network> for NetworkKind
§fn from(n: Network) -> NetworkKind
fn from(n: Network) -> NetworkKind
Converts to this type from the input type.
§impl Hash for NetworkKind
impl Hash for NetworkKind
§impl Ord for NetworkKind
impl Ord for NetworkKind
§impl PartialEq for NetworkKind
impl PartialEq for NetworkKind
§fn eq(&self, other: &NetworkKind) -> bool
fn eq(&self, other: &NetworkKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for NetworkKind
impl PartialOrd for NetworkKind
§fn partial_cmp(&self, other: &NetworkKind) -> Option<Ordering>
fn partial_cmp(&self, other: &NetworkKind) -> Option<Ordering>
1.0.0 · source§fn 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 moreimpl Copy for NetworkKind
impl Eq for NetworkKind
impl StructuralPartialEq for NetworkKind
Auto Trait Implementations§
impl Freeze for NetworkKind
impl RefUnwindSafe for NetworkKind
impl Send for NetworkKind
impl Sync for NetworkKind
impl Unpin for NetworkKind
impl UnwindSafe for NetworkKind
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more