Enum bdk::KeychainKind
source · pub enum KeychainKind {
External,
Internal,
}
Expand description
Types of keychains
Variants§
Implementations§
source§impl KeychainKind
impl KeychainKind
sourcepub fn as_byte(&self) -> u8
pub fn as_byte(&self) -> u8
Return KeychainKind
as a byte
Trait Implementations§
source§impl AsRef<[u8]> for KeychainKind
impl AsRef<[u8]> for KeychainKind
source§impl Clone for KeychainKind
impl Clone for KeychainKind
source§fn clone(&self) -> KeychainKind
fn clone(&self) -> KeychainKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KeychainKind
impl Debug for KeychainKind
source§impl<'de> Deserialize<'de> for KeychainKind
impl<'de> Deserialize<'de> for KeychainKind
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 Hash for KeychainKind
impl Hash for KeychainKind
source§impl Ord for KeychainKind
impl Ord for KeychainKind
source§fn cmp(&self, other: &KeychainKind) -> Ordering
fn cmp(&self, other: &KeychainKind) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<KeychainKind> for KeychainKind
impl PartialEq<KeychainKind> for KeychainKind
source§fn eq(&self, other: &KeychainKind) -> bool
fn eq(&self, other: &KeychainKind) -> bool
source§impl PartialOrd<KeychainKind> for KeychainKind
impl PartialOrd<KeychainKind> for KeychainKind
source§fn partial_cmp(&self, other: &KeychainKind) -> Option<Ordering>
fn partial_cmp(&self, other: &KeychainKind) -> Option<Ordering>
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 KeychainKind
impl Serialize for KeychainKind
impl Copy for KeychainKind
impl Eq for KeychainKind
impl StructuralEq for KeychainKind
impl StructuralPartialEq for KeychainKind
Auto Trait Implementations§
impl RefUnwindSafe for KeychainKind
impl Send for KeychainKind
impl Sync for KeychainKind
impl Unpin for KeychainKind
impl UnwindSafe for KeychainKind
Blanket Implementations§
§impl<T> Base32Len for Twhere
T: AsRef<[u8]>,
impl<T> Base32Len for Twhere
T: AsRef<[u8]>,
§fn base32_len(&self) -> usize
fn base32_len(&self) -> usize
Calculate the base32 serialized length