pub enum Network {
BitcoinMainnet,
BitcoinTestnet,
Ethereum,
}Expand description
Supported blockchain networks.
Variants§
Implementations§
Source§impl Network
impl Network
Sourcepub fn is_bitcoin(&self) -> bool
pub fn is_bitcoin(&self) -> bool
Returns true if this is a Bitcoin network.
Sourcepub fn is_ethereum(&self) -> bool
pub fn is_ethereum(&self) -> bool
Returns true if this is Ethereum.
Sourcepub fn is_testnet(&self) -> bool
pub fn is_testnet(&self) -> bool
Returns true if this is a testnet.
Trait Implementations§
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