Enum lnd_grpc_rust::lnrpc::failure::FailureCode
source · #[repr(i32)]pub enum FailureCode {
Show 28 variants
Reserved = 0,
IncorrectOrUnknownPaymentDetails = 1,
IncorrectPaymentAmount = 2,
FinalIncorrectCltvExpiry = 3,
FinalIncorrectHtlcAmount = 4,
FinalExpiryTooSoon = 5,
InvalidRealm = 6,
ExpiryTooSoon = 7,
InvalidOnionVersion = 8,
InvalidOnionHmac = 9,
InvalidOnionKey = 10,
AmountBelowMinimum = 11,
FeeInsufficient = 12,
IncorrectCltvExpiry = 13,
ChannelDisabled = 14,
TemporaryChannelFailure = 15,
RequiredNodeFeatureMissing = 16,
RequiredChannelFeatureMissing = 17,
UnknownNextPeer = 18,
TemporaryNodeFailure = 19,
PermanentNodeFailure = 20,
PermanentChannelFailure = 21,
ExpiryTooFar = 22,
MppTimeout = 23,
InvalidOnionPayload = 24,
InternalFailure = 997,
UnknownFailure = 998,
UnreadableFailure = 999,
}
Variants§
Reserved = 0
The numbers assigned in this enumeration match the failure codes as defined in BOLT #4. Because protobuf 3 requires enums to start with 0, a RESERVED value is added.
IncorrectOrUnknownPaymentDetails = 1
IncorrectPaymentAmount = 2
FinalIncorrectCltvExpiry = 3
FinalIncorrectHtlcAmount = 4
FinalExpiryTooSoon = 5
InvalidRealm = 6
ExpiryTooSoon = 7
InvalidOnionVersion = 8
InvalidOnionHmac = 9
InvalidOnionKey = 10
AmountBelowMinimum = 11
FeeInsufficient = 12
IncorrectCltvExpiry = 13
ChannelDisabled = 14
TemporaryChannelFailure = 15
RequiredNodeFeatureMissing = 16
RequiredChannelFeatureMissing = 17
UnknownNextPeer = 18
TemporaryNodeFailure = 19
PermanentNodeFailure = 20
PermanentChannelFailure = 21
ExpiryTooFar = 22
MppTimeout = 23
InvalidOnionPayload = 24
InternalFailure = 997
An internal error occurred.
UnknownFailure = 998
The error source is known, but the failure itself couldn’t be decoded.
UnreadableFailure = 999
An unreadable failure result is returned if the received failure message cannot be decrypted. In that case the error source is unknown.
Implementations§
Trait Implementations§
source§impl Clone for FailureCode
impl Clone for FailureCode
source§fn clone(&self) -> FailureCode
fn clone(&self) -> FailureCode
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 FailureCode
impl Debug for FailureCode
source§impl Default for FailureCode
impl Default for FailureCode
source§fn default() -> FailureCode
fn default() -> FailureCode
Returns the “default value” for a type. Read more
source§impl From<FailureCode> for i32
impl From<FailureCode> for i32
source§fn from(value: FailureCode) -> i32
fn from(value: FailureCode) -> i32
Converts to this type from the input type.
source§impl Hash for FailureCode
impl Hash for FailureCode
source§impl Ord for FailureCode
impl Ord for FailureCode
source§fn cmp(&self, other: &FailureCode) -> Ordering
fn cmp(&self, other: &FailureCode) -> 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 FailureCode
impl PartialEq for FailureCode
source§fn eq(&self, other: &FailureCode) -> bool
fn eq(&self, other: &FailureCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FailureCode
impl PartialOrd for FailureCode
source§fn partial_cmp(&self, other: &FailureCode) -> Option<Ordering>
fn partial_cmp(&self, other: &FailureCode) -> 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 moreimpl Copy for FailureCode
impl Eq for FailureCode
impl StructuralPartialEq for FailureCode
Auto Trait Implementations§
impl RefUnwindSafe for FailureCode
impl Send for FailureCode
impl Sync for FailureCode
impl Unpin for FailureCode
impl UnwindSafe for FailureCode
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Wrap the input message
T
in a tonic::Request