Enum breez_sdk_core::error::SendPaymentError
source · pub enum SendPaymentError {
AlreadyPaid,
Generic {
err: String,
},
InvalidAmount {
err: String,
},
InvalidInvoice {
err: String,
},
InvalidNetwork {
err: String,
},
InvoiceExpired {
err: String,
},
PaymentFailed {
err: String,
},
PaymentTimeout {
err: String,
},
RouteNotFound {
err: String,
},
RouteTooExpensive {
err: String,
},
ServiceConnectivity {
err: String,
},
}
Expand description
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 and there is no provided amount in crate::models::SendPaymentRequest::amount_msat.
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.
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§
source§impl Clone for SendPaymentError
impl Clone for SendPaymentError
source§fn clone(&self) -> SendPaymentError
fn clone(&self) -> SendPaymentError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SendPaymentError
impl Debug for SendPaymentError
source§impl Display for SendPaymentError
impl Display for SendPaymentError
source§impl Error for SendPaymentError
impl Error for SendPaymentError
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 SendPaymentError
impl From<Error> for SendPaymentError
source§impl From<InvoiceError> for SendPaymentError
impl From<InvoiceError> for SendPaymentError
source§fn from(value: InvoiceError) -> Self
fn from(value: InvoiceError) -> Self
source§impl From<SdkError> for SendPaymentError
impl From<SdkError> for SendPaymentError
source§impl From<SendPaymentError> for LnUrlPayError
impl From<SendPaymentError> for LnUrlPayError
source§fn from(value: SendPaymentError) -> Self
fn from(value: SendPaymentError) -> Self
source§impl From<SendPaymentError> for SdkError
impl From<SendPaymentError> for SdkError
source§fn from(value: SendPaymentError) -> Self
fn from(value: SendPaymentError) -> Self
source§impl From<SystemTimeError> for SendPaymentError
impl From<SystemTimeError> for SendPaymentError
source§fn from(err: SystemTimeError) -> Self
fn from(err: SystemTimeError) -> Self
Auto Trait Implementations§
impl Freeze for SendPaymentError
impl RefUnwindSafe for SendPaymentError
impl Send for SendPaymentError
impl Sync for SendPaymentError
impl Unpin for SendPaymentError
impl UnwindSafe for SendPaymentError
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