Enum offchain::payment_command::PaymentState
source · pub enum PaymentState {
SenderInit,
SenderAbort,
SenderSoft,
SenderSoftSend,
Ready,
RecieverAbort,
RecieverSoft,
RecieverSoftSend,
RecieverSend,
}
Variants§
SenderInit
SenderAbort
SenderSoft
SenderSoftSend
Ready
RecieverAbort
RecieverSoft
RecieverSoftSend
RecieverSend
Implementations§
source§impl PaymentState
impl PaymentState
pub fn is_valid_transition(from: Self, to: Self) -> bool
pub fn trigger_actor(&self) -> Actor
pub fn from_payment(payment: &PaymentObject) -> Option<Self>
Trait Implementations§
source§impl Clone for PaymentState
impl Clone for PaymentState
source§fn clone(&self) -> PaymentState
fn clone(&self) -> PaymentState
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 PaymentState
impl Debug for PaymentState
source§impl PartialEq<PaymentState> for PaymentState
impl PartialEq<PaymentState> for PaymentState
source§fn eq(&self, other: &PaymentState) -> bool
fn eq(&self, other: &PaymentState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PaymentState
impl Eq for PaymentState
impl StructuralEq for PaymentState
impl StructuralPartialEq for PaymentState
Auto Trait Implementations§
impl RefUnwindSafe for PaymentState
impl Send for PaymentState
impl Sync for PaymentState
impl Unpin for PaymentState
impl UnwindSafe for PaymentState
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.