#[repr(u16)]pub enum TlcErrorCode {
Show 25 variants
TemporaryNodeFailure = 8_194,
PermanentNodeFailure = 24_578,
RequiredNodeFeatureMissing = 24_579,
InvalidOnionVersion = 49_156,
InvalidOnionHmac = 49_157,
InvalidOnionKey = 49_158,
TemporaryChannelFailure = 4_103,
PermanentChannelFailure = 16_392,
RequiredChannelFeatureMissing = 16_393,
UnknownNextPeer = 16_394,
AmountBelowMinimum = 4_107,
FeeInsufficient = 4_108,
IncorrectTlcExpiry = 4_109,
ExpiryTooSoon = 16_398,
IncorrectOrUnknownPaymentDetails = 16_399,
InvoiceExpired = 16_400,
InvoiceCancelled = 16_401,
FinalIncorrectExpiryDelta = 18,
FinalIncorrectTlcAmount = 19,
ChannelDisabled = 4_116,
ExpiryTooFar = 16_405,
InvalidOnionPayload = 16_406,
HoldTlcTimeout = 16_407,
InvalidOnionError = 49_177,
IncorrectTlcDirection = 16_410,
}Expand description
Error codes for TLC (Time-Locked Contract) failures.
Variants§
TemporaryNodeFailure = 8_194
PermanentNodeFailure = 24_578
RequiredNodeFeatureMissing = 24_579
InvalidOnionVersion = 49_156
InvalidOnionHmac = 49_157
InvalidOnionKey = 49_158
TemporaryChannelFailure = 4_103
PermanentChannelFailure = 16_392
RequiredChannelFeatureMissing = 16_393
UnknownNextPeer = 16_394
AmountBelowMinimum = 4_107
FeeInsufficient = 4_108
IncorrectTlcExpiry = 4_109
ExpiryTooSoon = 16_398
IncorrectOrUnknownPaymentDetails = 16_399
InvoiceExpired = 16_400
InvoiceCancelled = 16_401
FinalIncorrectExpiryDelta = 18
FinalIncorrectTlcAmount = 19
ChannelDisabled = 4_116
ExpiryTooFar = 16_405
InvalidOnionPayload = 16_406
HoldTlcTimeout = 16_407
InvalidOnionError = 49_177
IncorrectTlcDirection = 16_410
Implementations§
Trait Implementations§
Source§impl AsRef<str> for TlcErrorCode
impl AsRef<str> for TlcErrorCode
Source§impl Clone for TlcErrorCode
impl Clone for TlcErrorCode
Source§fn clone(&self) -> TlcErrorCode
fn clone(&self) -> TlcErrorCode
Returns a duplicate 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 TlcErrorCode
impl Debug for TlcErrorCode
Source§impl<'de> Deserialize<'de> for TlcErrorCode
impl<'de> Deserialize<'de> for TlcErrorCode
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 From<TlcErrorCode> for u16
impl From<TlcErrorCode> for u16
Source§fn from(enum_value: TlcErrorCode) -> Self
fn from(enum_value: TlcErrorCode) -> Self
Converts to this type from the input type.
Source§impl FromStr for TlcErrorCode
impl FromStr for TlcErrorCode
Source§impl PartialEq for TlcErrorCode
impl PartialEq for TlcErrorCode
Source§impl Serialize for TlcErrorCode
impl Serialize for TlcErrorCode
Source§impl TryFrom<&str> for TlcErrorCode
impl TryFrom<&str> for TlcErrorCode
Source§impl TryFrom<u16> for TlcErrorCode
impl TryFrom<u16> for TlcErrorCode
Source§type Error = TryFromPrimitiveError<TlcErrorCode>
type Error = TryFromPrimitiveError<TlcErrorCode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for TlcErrorCode
impl TryFromPrimitive for TlcErrorCode
const NAME: &'static str = "TlcErrorCode"
type Primitive = u16
type Error = TryFromPrimitiveError<TlcErrorCode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for TlcErrorCode
impl Eq for TlcErrorCode
impl StructuralPartialEq for TlcErrorCode
Auto Trait Implementations§
impl Freeze for TlcErrorCode
impl RefUnwindSafe for TlcErrorCode
impl Send for TlcErrorCode
impl Sync for TlcErrorCode
impl Unpin for TlcErrorCode
impl UnsafeUnpin for TlcErrorCode
impl UnwindSafe for TlcErrorCode
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