Enum bitcoin::network::constants::Network [] [src]

pub enum Network {
    Bitcoin,
    Testnet,
}

The cryptocurrency to act on

Variants

Classic Bitcoin

Bitcoin's testnet

Trait Implementations

impl Copy for Network
[src]

impl PartialEq for Network
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Network
[src]

impl Clone for Network
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for Network
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Debug for Network
[src]

Formats the value using the given formatter.

impl Display for Network
[src]

Formats the value using the given formatter.

impl Deserialize for Network
[src]

Deserialize this value given this Deserializer.

impl Serialize for Network
[src]

Serializes this value into this serializer.

impl<S: SimpleEncoder> ConsensusEncodable<S> for Network
[src]

Encode an object with a well-defined format

impl<D: SimpleDecoder> ConsensusDecodable<D> for Network
[src]

Decode an object with a well-defined format