pub enum PayError<E1, E2: Error>{
NoBlankOrChange(VelocityHint, AssignmentType),
NoBeneficiaryOutput,
NoContract,
NoIface,
InsufficientState,
InvoiceExpired,
Inventory(InventoryError<E1>),
Builder(BuilderError),
Consigner(ConsignerError<E1, E2>),
RgbPsbt(RgbPsbtError),
DbcPsbt(DbcPsbtError),
}Variants§
NoBlankOrChange(VelocityHint, AssignmentType)
not enough PSBT output found to put all required state (can’t add assignment type {1} for {0}-velocity state).
NoBeneficiaryOutput
PSBT lacks beneficiary output matching the invoice.
NoContract
unspecified contract
NoIface
unspecified interface
InsufficientState
state provided via PSBT inputs is not sufficient to cover invoice state requirements.
InvoiceExpired
the invoice has expired
Inventory(InventoryError<E1>)
Builder(BuilderError)
Consigner(ConsignerError<E1, E2>)
RgbPsbt(RgbPsbtError)
DbcPsbt(DbcPsbtError)
Trait Implementations§
source§impl<E1, E2: Error> Error for PayError<E1, E2>
impl<E1, E2: Error> Error for PayError<E1, E2>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<E1, E2: Error> From<BuilderError> for PayError<E1, E2>
impl<E1, E2: Error> From<BuilderError> for PayError<E1, E2>
source§fn from(v: BuilderError) -> Self
fn from(v: BuilderError) -> Self
Converts to this type from the input type.
source§impl<E1, E2: Error> From<ConsignerError<E1, E2>> for PayError<E1, E2>
impl<E1, E2: Error> From<ConsignerError<E1, E2>> for PayError<E1, E2>
source§fn from(v: ConsignerError<E1, E2>) -> Self
fn from(v: ConsignerError<E1, E2>) -> Self
Converts to this type from the input type.
source§impl<E1, E2: Error> From<DbcPsbtError> for PayError<E1, E2>
impl<E1, E2: Error> From<DbcPsbtError> for PayError<E1, E2>
source§fn from(v: DbcPsbtError) -> Self
fn from(v: DbcPsbtError) -> Self
Converts to this type from the input type.
source§impl<E1, E2: Error> From<InventoryError<E1>> for PayError<E1, E2>
impl<E1, E2: Error> From<InventoryError<E1>> for PayError<E1, E2>
source§fn from(v: InventoryError<E1>) -> Self
fn from(v: InventoryError<E1>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E1, E2> !RefUnwindSafe for PayError<E1, E2>
impl<E1, E2> !Send for PayError<E1, E2>
impl<E1, E2> !Sync for PayError<E1, E2>
impl<E1, E2> Unpin for PayError<E1, E2>
impl<E1, E2> !UnwindSafe for PayError<E1, E2>
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