pub enum Chain {
Bitcoin,
Testnet3,
Regtest,
Signet,
}
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Chain
impl<'de> Deserialize<'de> for Chain
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Chain, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Chain, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Chain
impl Ord for Chain
source§impl PartialEq<Chain> for Chain
impl PartialEq<Chain> for Chain
source§impl PartialOrd<Chain> for Chain
impl PartialOrd<Chain> for Chain
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for Chain
impl Serialize for Chain
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl StrictDecode for Chain
impl StrictDecode for Chain
fn strict_decode(reader: &mut impl TypedRead) -> Result<Chain, DecodeError>
source§impl StrictEncode for Chain
impl StrictEncode for Chain
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where W: TypedWrite,
source§impl StrictEnum for Chain
impl StrictEnum for Chain
fn from_variant_name(name: &FieldName) -> Result<Self, VariantError<&FieldName>>
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictSum for Chain
impl StrictSum for Chain
const ALL_VARIANTS: &'static [(u8, &'static str)] = &[(Self::Bitcoin as u8, "bitcoin"), (Self::Testnet3 as u8, "testnet3"), (Self::Regtest as u8, "regtest"), (Self::Signet as u8, "signet")]
fn variant_name(&self) -> &'static str
fn strict_check_variants()
fn variant_name_by_tag(tag: u8) -> Option<FieldName>
fn variant_ord(&self) -> u8
source§impl StrictType for Chain
impl StrictType for Chain
const STRICT_LIB_NAME: &'static str = LIB_NAME_BITCOIN
fn strict_name() -> Option<TypeName>
impl Copy for Chain
impl Eq for Chain
impl StructuralEq for Chain
impl StructuralPartialEq for Chain
Auto Trait Implementations§
impl RefUnwindSafe for Chain
impl Send for Chain
impl Sync for Chain
impl Unpin for Chain
impl UnwindSafe for Chain
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.