Enum bitcoin::network::constants::Network
[−]
[src]
pub enum Network { Bitcoin, Testnet, }
The cryptocurrency to act on
Variants
Bitcoin
Classic Bitcoin
Testnet
Bitcoin's testnet
Trait Implementations
impl Hash for Network
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Clone for Network
[src]
fn clone(&self) -> Network
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for Network
[src]
impl PartialEq for Network
[src]
fn eq(&self, __arg_0: &Network) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Copy for Network
[src]
impl Debug for Network
[src]
impl Display for Network
[src]
impl Deserialize for Network
[src]
fn deserialize<D>(d: &mut D) -> Result<Network, D::Error> where D: Deserializer
Deserialize this value given this Deserializer
.
impl Serialize for Network
[src]
fn serialize<S>(&self, s: &mut S) -> Result<(), S::Error> where S: Serializer
Serializes this value into this serializer.
impl<S: SimpleEncoder> ConsensusEncodable<S> for Network
[src]
fn consensus_encode(&self, s: &mut S) -> Result<(), S::Error>
Encode an object with a well-defined format
impl<D: SimpleDecoder> ConsensusDecodable<D> for Network
[src]
fn consensus_decode(d: &mut D) -> Result<Network, D::Error>
Decode an object with a well-defined format