Enum InvoiceError
pub enum InvoiceError {
Generic(String),
InvalidNetwork(String),
Validation(String),
}
Variants§
Implementations§
§impl InvoiceError
impl InvoiceError
pub fn generic(err: &str) -> InvoiceError
pub fn invalid_network(err: &str) -> InvoiceError
pub fn validation(err: &str) -> InvoiceError
Trait Implementations§
§impl Debug for InvoiceError
impl Debug for InvoiceError
§impl Display for InvoiceError
impl Display for InvoiceError
§impl Error for InvoiceError
impl Error for InvoiceError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
§impl From<Bolt11ParseError> for InvoiceError
impl From<Bolt11ParseError> for InvoiceError
§fn from(err: Bolt11ParseError) -> InvoiceError
fn from(err: Bolt11ParseError) -> InvoiceError
Converts to this type from the input type.
§impl From<Bolt11SemanticError> for InvoiceError
impl From<Bolt11SemanticError> for InvoiceError
§fn from(err: Bolt11SemanticError) -> InvoiceError
fn from(err: Bolt11SemanticError) -> InvoiceError
Converts to this type from the input type.
§impl From<CreationError> for InvoiceError
impl From<CreationError> for InvoiceError
§fn from(err: CreationError) -> InvoiceError
fn from(err: CreationError) -> InvoiceError
Converts to this type from the input type.
§impl From<Error> for InvoiceError
impl From<Error> for InvoiceError
§fn from(err: Error) -> InvoiceError
fn from(err: Error) -> InvoiceError
Converts to this type from the input type.
§impl From<Error> for InvoiceError
impl From<Error> for InvoiceError
§fn from(err: Error) -> InvoiceError
fn from(err: Error) -> InvoiceError
Converts to this type from the input type.
§impl From<InvoiceError> for LnUrlError
impl From<InvoiceError> for LnUrlError
§fn from(value: InvoiceError) -> LnUrlError
fn from(value: InvoiceError) -> LnUrlError
Converts to this type from the input type.
§impl From<InvoiceError> for LnUrlPayError
impl From<InvoiceError> for LnUrlPayError
§fn from(value: InvoiceError) -> LnUrlPayError
fn from(value: InvoiceError) -> LnUrlPayError
Converts to this type from the input type.
§impl From<InvoiceError> for LnUrlWithdrawError
impl From<InvoiceError> for LnUrlWithdrawError
§fn from(value: InvoiceError) -> LnUrlWithdrawError
fn from(value: InvoiceError) -> LnUrlWithdrawError
Converts to this type from the input type.
§impl From<ParseIntError> for InvoiceError
impl From<ParseIntError> for InvoiceError
§fn from(err: ParseIntError) -> InvoiceError
fn from(err: ParseIntError) -> InvoiceError
Converts to this type from the input type.
§impl From<SystemTimeError> for InvoiceError
impl From<SystemTimeError> for InvoiceError
§fn from(err: SystemTimeError) -> InvoiceError
fn from(err: SystemTimeError) -> InvoiceError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InvoiceError
impl RefUnwindSafe for InvoiceError
impl Send for InvoiceError
impl Sync for InvoiceError
impl Unpin for InvoiceError
impl UnwindSafe for InvoiceError
Blanket Implementations§
§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
Mutably borrows from an owned value. Read more
§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>
Wrap the input message
T
in a tonic::Request