Enum offchain::payment_command::Actor
source · pub enum Actor {
Sender,
Receiver,
}
Variants§
Implementations§
source§impl Actor
impl Actor
pub fn counterparty_actor(&self) -> Self
Trait Implementations§
source§impl PartialEq<Actor> for Actor
impl PartialEq<Actor> for Actor
impl Copy for Actor
impl Eq for Actor
impl StructuralEq for Actor
impl StructuralPartialEq for Actor
Auto Trait Implementations§
impl RefUnwindSafe for Actor
impl Send for Actor
impl Sync for Actor
impl Unpin for Actor
impl UnwindSafe for Actor
Blanket Implementations§
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.