pub enum ValidateIssuanceError {
Signature(CheckSignatureError),
AmountMismatch {
invoice_msat: u64,
requested_msat: u64,
},
}Expand description
Error returned when a BOLT12 invoice fetched from an offer doesn’t match the invoice we asked for.
Variants§
Trait Implementations§
Source§impl Debug for ValidateIssuanceError
impl Debug for ValidateIssuanceError
Source§impl Display for ValidateIssuanceError
impl Display for ValidateIssuanceError
Source§impl Error for ValidateIssuanceError
impl Error for ValidateIssuanceError
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()
Source§impl From<CheckSignatureError> for ValidateIssuanceError
impl From<CheckSignatureError> for ValidateIssuanceError
Source§fn from(source: CheckSignatureError) -> Self
fn from(source: CheckSignatureError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ValidateIssuanceError
impl RefUnwindSafe for ValidateIssuanceError
impl Send for ValidateIssuanceError
impl Sync for ValidateIssuanceError
impl Unpin for ValidateIssuanceError
impl UnsafeUnpin for ValidateIssuanceError
impl UnwindSafe for ValidateIssuanceError
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