#[repr(i32)]pub enum LightningReceiveStatus {
Created = 0,
Accepted = 1,
HtlcsReady = 2,
Settled = 3,
Canceled = 4,
}Variants§
Created = 0
We have created the invoice and are awaiting the sender to start the process
Accepted = 1
The sender has setup the payment route and it’s ready to go
HtlcsReady = 2
The Ark HTLC is created and ready to be executed with the preimage
Settled = 3
The HTLCs have been executed and the payment was settled
Canceled = 4
The payment was canceled before being executed
Implementations§
Source§impl LightningReceiveStatus
impl LightningReceiveStatus
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true if value is a variant of LightningReceiveStatus.
Sourcepub fn from_i32(value: i32) -> Option<LightningReceiveStatus>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<LightningReceiveStatus>
Use the TryFrom<i32> implementation instead
Converts an i32 to a LightningReceiveStatus, or None if value is not a valid variant.
Source§impl LightningReceiveStatus
impl LightningReceiveStatus
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for LightningReceiveStatus
impl Clone for LightningReceiveStatus
Source§fn clone(&self) -> LightningReceiveStatus
fn clone(&self) -> LightningReceiveStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for LightningReceiveStatus
Source§impl Debug for LightningReceiveStatus
impl Debug for LightningReceiveStatus
Source§impl Default for LightningReceiveStatus
impl Default for LightningReceiveStatus
Source§fn default() -> LightningReceiveStatus
fn default() -> LightningReceiveStatus
impl Eq for LightningReceiveStatus
Source§impl From<LightningReceiveStatus> for i32
impl From<LightningReceiveStatus> for i32
Source§fn from(value: LightningReceiveStatus) -> i32
fn from(value: LightningReceiveStatus) -> i32
Source§impl Hash for LightningReceiveStatus
impl Hash for LightningReceiveStatus
Source§impl Ord for LightningReceiveStatus
impl Ord for LightningReceiveStatus
Source§fn cmp(&self, other: &LightningReceiveStatus) -> Ordering
fn cmp(&self, other: &LightningReceiveStatus) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for LightningReceiveStatus
impl PartialEq for LightningReceiveStatus
Source§fn eq(&self, other: &LightningReceiveStatus) -> bool
fn eq(&self, other: &LightningReceiveStatus) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for LightningReceiveStatus
impl PartialOrd for LightningReceiveStatus
impl StructuralPartialEq for LightningReceiveStatus
Source§impl TryFrom<i32> for LightningReceiveStatus
impl TryFrom<i32> for LightningReceiveStatus
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<LightningReceiveStatus, UnknownEnumValue>
fn try_from(value: i32) -> Result<LightningReceiveStatus, UnknownEnumValue>
Auto Trait Implementations§
impl Freeze for LightningReceiveStatus
impl RefUnwindSafe for LightningReceiveStatus
impl Send for LightningReceiveStatus
impl Sync for LightningReceiveStatus
impl Unpin for LightningReceiveStatus
impl UnsafeUnpin for LightningReceiveStatus
impl UnwindSafe for LightningReceiveStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request