Enum mutiny_core::HTLCStatus
source · pub enum HTLCStatus {
Pending,
InFlight,
Succeeded,
Failed,
}Variants§
Pending
Our invoice has not been paid yet
InFlight
We are currently trying to pay an invoice
Succeeded
An invoice has been paid
Failed
We failed to pay an invoice
Trait Implementations§
source§impl Clone for HTLCStatus
impl Clone for HTLCStatus
source§fn clone(&self) -> HTLCStatus
fn clone(&self) -> HTLCStatus
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 HTLCStatus
impl Debug for HTLCStatus
source§impl<'de> Deserialize<'de> for HTLCStatus
impl<'de> Deserialize<'de> for HTLCStatus
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 Display for HTLCStatus
impl Display for HTLCStatus
source§impl Hash for HTLCStatus
impl Hash for HTLCStatus
source§impl Ord for HTLCStatus
impl Ord for HTLCStatus
source§fn cmp(&self, other: &HTLCStatus) -> Ordering
fn cmp(&self, other: &HTLCStatus) -> 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 for HTLCStatus
impl PartialEq for HTLCStatus
source§fn eq(&self, other: &HTLCStatus) -> bool
fn eq(&self, other: &HTLCStatus) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for HTLCStatus
impl PartialOrd for HTLCStatus
source§fn partial_cmp(&self, other: &HTLCStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &HTLCStatus) -> 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 HTLCStatus
impl Serialize for HTLCStatus
impl Eq for HTLCStatus
impl StructuralEq for HTLCStatus
impl StructuralPartialEq for HTLCStatus
Auto Trait Implementations§
impl RefUnwindSafe for HTLCStatus
impl Send for HTLCStatus
impl Sync for HTLCStatus
impl Unpin for HTLCStatus
impl UnwindSafe for HTLCStatus
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
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.