Enum 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
§impl PartialOrd for NetworkKind
impl PartialOrd for NetworkKind
impl 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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