#[repr(u8)]pub enum Network {
Mainnet = 0,
Testnet = 1,
}
Expand description
Stacks network kind
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Network
impl<'de> Deserialize<'de> for Network
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Into<Network> for Network
impl Into<Network> for Network
Source§fn into(self) -> BitcoinNetwork
fn into(self) -> BitcoinNetwork
Converts this type into the (usually inferred) input type.
Source§impl IntoEnumIterator for Network
impl IntoEnumIterator for Network
type Iterator = NetworkIter
fn iter() -> NetworkIter ⓘ
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