Enum breez_sdk_core::LnUrlPayError
pub enum LnUrlPayError {
AlreadyPaid,
Generic {
err: String,
},
InvalidAmount {
err: String,
},
InvalidInvoice {
err: String,
},
InvalidNetwork {
err: String,
},
InvalidUri {
err: String,
},
InvoiceExpired {
err: String,
},
PaymentFailed {
err: String,
},
PaymentTimeout {
err: String,
},
RouteNotFound {
err: String,
},
RouteTooExpensive {
err: String,
},
ServiceConnectivity {
err: String,
},
}
Expand description
Error returned by [crate::breez_services::BreezServices::lnurl_pay]
Variants§
AlreadyPaid
This error is raised when attempting to pay an invoice that has already being paid.
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 from the parsed invoice is not set.
InvalidInvoice
This error is raised when the lightning invoice cannot be parsed.
InvalidNetwork
This error is raised when the lightning invoice is for a different Bitcoin network.
InvalidUri
This error is raised when the decoded LNURL URI is not compliant to the specification.
InvoiceExpired
This error is raised when the lightning invoice has passed it’s expiry time.
PaymentFailed
This error is raised when attempting to make a payment by the node fails.
PaymentTimeout
This error is raised when attempting to make a payment takes too long.
RouteNotFound
This error is raised when no route can be found when attempting to make a payment by the node.
RouteTooExpensive
This error is raised when the route is considered too expensive when attempting to make a payment by the node.
ServiceConnectivity
This error is raised when a connection to an external service fails.
Trait Implementations§
§impl Clone for LnUrlPayError
impl Clone for LnUrlPayError
§fn clone(&self) -> LnUrlPayError
fn clone(&self) -> LnUrlPayError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for LnUrlPayError
impl Debug for LnUrlPayError
§impl Display for LnUrlPayError
impl Display for LnUrlPayError
§impl Error for LnUrlPayError
impl Error for LnUrlPayError
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
§impl From<Error> for LnUrlPayError
impl From<Error> for LnUrlPayError
§fn from(err: Error) -> LnUrlPayError
fn from(err: Error) -> LnUrlPayError
§impl From<Error> for LnUrlPayError
impl From<Error> for LnUrlPayError
§fn from(err: Error) -> LnUrlPayError
fn from(err: Error) -> LnUrlPayError
§impl From<InvoiceError> for LnUrlPayError
impl From<InvoiceError> for LnUrlPayError
§fn from(value: InvoiceError) -> LnUrlPayError
fn from(value: InvoiceError) -> LnUrlPayError
§impl From<LnUrlError> for LnUrlPayError
impl From<LnUrlError> for LnUrlPayError
§fn from(value: LnUrlError) -> LnUrlPayError
fn from(value: LnUrlError) -> LnUrlPayError
source§impl From<SdkError> for LnUrlPayError
impl From<SdkError> for LnUrlPayError
source§impl From<SendPaymentError> for LnUrlPayError
impl From<SendPaymentError> for LnUrlPayError
source§fn from(value: SendPaymentError) -> Self
fn from(value: SendPaymentError) -> Self
Auto Trait Implementations§
impl Freeze for LnUrlPayError
impl RefUnwindSafe for LnUrlPayError
impl Send for LnUrlPayError
impl Sync for LnUrlPayError
impl Unpin for LnUrlPayError
impl UnwindSafe for LnUrlPayError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§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