[][src]Enum sv::network::Network

pub enum Network {
    Mainnet,
    Testnet,
}

Network type

Variants

Methods

impl Network
[src]

Converts an integer to a network type

Returns the default TCP port

Returns the magic bytes for the message headers

Returns the genesis block

Returns the genesis block hash

Returns the version byte flag for P2PKH-type addresses

Returns the version byte flag for P2SH-type addresses

Returns a list of DNS seeds for finding initial nodes

Important traits for SeedIter

Creates a new DNS seed iterator for this network

Trait Implementations

impl Clone for Network
[src]

Performs copy-assignment from source. Read more

impl Copy for Network
[src]

impl Eq for Network
[src]

impl PartialEq<Network> for Network
[src]

This method tests for !=.

impl Debug for Network
[src]

impl Hash for Network
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for Network

impl Sync for Network

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

Should always be Self