pub enum CounterpartyType {
Uninitialized,
Self_,
Anyone,
Other,
}Expand description
The type of counterparty in a cryptographic operation.
Variants§
Uninitialized
Uninitialized / unknown.
Self_
The wallet itself.
Anyone
The special “anyone” key (PrivateKey(1)).
Other
A specific other party identified by public key.
Trait Implementations§
Source§impl Clone for CounterpartyType
impl Clone for CounterpartyType
Source§fn clone(&self) -> CounterpartyType
fn clone(&self) -> CounterpartyType
Returns a duplicate 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 CounterpartyType
impl Debug for CounterpartyType
Source§impl PartialEq for CounterpartyType
impl PartialEq for CounterpartyType
impl StructuralPartialEq for CounterpartyType
Auto Trait Implementations§
impl Freeze for CounterpartyType
impl RefUnwindSafe for CounterpartyType
impl Send for CounterpartyType
impl Sync for CounterpartyType
impl Unpin for CounterpartyType
impl UnsafeUnpin for CounterpartyType
impl UnwindSafe for CounterpartyType
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