[][src]Enum lnrpc::failure::FailureCode

#[repr(i32)]pub enum FailureCode {
    Reserved,
    IncorrectOrUnknownPaymentDetails,
    IncorrectPaymentAmount,
    FinalIncorrectCltvExpiry,
    FinalIncorrectHtlcAmount,
    FinalExpiryTooSoon,
    InvalidRealm,
    ExpiryTooSoon,
    InvalidOnionVersion,
    InvalidOnionHmac,
    InvalidOnionKey,
    AmountBelowMinimum,
    FeeInsufficient,
    IncorrectCltvExpiry,
    ChannelDisabled,
    TemporaryChannelFailure,
    RequiredNodeFeatureMissing,
    RequiredChannelFeatureMissing,
    UnknownNextPeer,
    TemporaryNodeFailure,
    PermanentNodeFailure,
    PermanentChannelFailure,
    ExpiryTooFar,
    MppTimeout,
    InternalFailure,
    UnknownFailure,
    UnreadableFailure,
}

Variants

Reserved

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
IncorrectPaymentAmount
FinalIncorrectCltvExpiry
FinalIncorrectHtlcAmount
FinalExpiryTooSoon
InvalidRealm
ExpiryTooSoon
InvalidOnionVersion
InvalidOnionHmac
InvalidOnionKey
AmountBelowMinimum
FeeInsufficient
IncorrectCltvExpiry
ChannelDisabled
TemporaryChannelFailure
RequiredNodeFeatureMissing
RequiredChannelFeatureMissing
UnknownNextPeer
TemporaryNodeFailure
PermanentNodeFailure
PermanentChannelFailure
ExpiryTooFar
MppTimeout
InternalFailure

An internal error occurred.

UnknownFailure

The error source is known, but the failure itself couldn't be decoded.

UnreadableFailure

An unreadable failure result is returned if the received failure message cannot be decrypted. In that case the error source is unknown.

Implementations

impl FailureCode[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of FailureCode.

pub fn from_i32(value: i32) -> Option<FailureCode>[src]

Converts an i32 to a FailureCode, or None if value is not a valid variant.

Trait Implementations

impl Clone for FailureCode[src]

impl Copy for FailureCode[src]

impl Debug for FailureCode[src]

impl Default for FailureCode[src]

impl Eq for FailureCode[src]

impl From<FailureCode> for i32[src]

impl Hash for FailureCode[src]

impl Ord for FailureCode[src]

impl PartialEq<FailureCode> for FailureCode[src]

impl PartialOrd<FailureCode> for FailureCode[src]

impl StructuralEq for FailureCode[src]

impl StructuralPartialEq for FailureCode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]