Enum breez_sdk_core::error::ReceivePaymentError
source · pub enum ReceivePaymentError {
Generic {
err: String,
},
InvalidAmount {
err: String,
},
InvalidInvoice {
err: String,
},
InvoiceExpired {
err: String,
},
InvoiceNoDescription {
err: String,
},
InvoiceNoRoutingHints {
err: String,
},
InvoicePreimageAlreadyExists {
err: String,
},
ServiceConnectivity {
err: String,
},
}
Expand description
Error returned by crate::breez_services::BreezServices::receive_payment
Variants§
Generic
This error is raised when a general error occurs not specific to other error variants in this enum.
InvalidAmount
This error is raised when the amount is zero or the amount does not cover the cost to open a new channel.
InvalidInvoice
This error is raised when the lightning invoice cannot be parsed.
InvoiceExpired
This error is raised when the lightning invoice has passed it’s expiry time.
InvoiceNoDescription
This error is raised by the node when no description has been set for the invoice.
InvoiceNoRoutingHints
This error is raised when no routing hints were able to be added to the invoice while trying to receive a payment.
InvoicePreimageAlreadyExists
This error is raised by the node when an invoice is has already being created using the same preimage.
ServiceConnectivity
This error is raised when a connection to an external service fails.
Trait Implementations§
source§impl Debug for ReceivePaymentError
impl Debug for ReceivePaymentError
source§impl Display for ReceivePaymentError
impl Display for ReceivePaymentError
source§impl Error for ReceivePaymentError
impl Error for ReceivePaymentError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<Error> for ReceivePaymentError
impl From<Error> for ReceivePaymentError
source§impl From<InvoiceError> for ReceivePaymentError
impl From<InvoiceError> for ReceivePaymentError
source§fn from(value: InvoiceError) -> Self
fn from(value: InvoiceError) -> Self
source§impl From<ReceivePaymentError> for LnUrlWithdrawError
impl From<ReceivePaymentError> for LnUrlWithdrawError
source§fn from(value: ReceivePaymentError) -> Self
fn from(value: ReceivePaymentError) -> Self
Auto Trait Implementations§
impl Freeze for ReceivePaymentError
impl RefUnwindSafe for ReceivePaymentError
impl Send for ReceivePaymentError
impl Sync for ReceivePaymentError
impl Unpin for ReceivePaymentError
impl UnwindSafe for ReceivePaymentError
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any
.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any
.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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