pub enum Party {
Subsidy,
Counterparty(Address),
Unknown(ScriptPubkey),
Wallet(DerivedAddr),
}
Variants§
Implementations§
Source§impl Party
impl Party
pub fn is_ourself(&self) -> bool
pub fn is_external(&self) -> bool
pub fn is_unknown(&self) -> bool
pub fn derived_addr(&self) -> Option<DerivedAddr>
pub fn from_wallet_addr<T>(wallet_addr: &WalletAddr<T>) -> Self
pub fn script_pubkey(&self) -> Option<ScriptPubkey>
Trait Implementations§
Source§impl From<DerivedAddr> for Party
impl From<DerivedAddr> for Party
Source§fn from(v: DerivedAddr) -> Self
fn from(v: DerivedAddr) -> Self
Converts to this type from the input type.
Source§impl From<Party> for Counterparty
impl From<Party> for Counterparty
Source§impl From<ScriptPubkey> for Party
impl From<ScriptPubkey> for Party
Source§fn from(v: ScriptPubkey) -> Self
fn from(v: ScriptPubkey) -> Self
Converts to this type from the input type.
impl Eq for Party
impl StructuralPartialEq for Party
Auto Trait Implementations§
impl Freeze for Party
impl RefUnwindSafe for Party
impl Send for Party
impl Sync for Party
impl Unpin for Party
impl UnwindSafe for Party
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.