pub enum ComposeError {
NoExtraOrChange(AssignmentType),
NoBeneficiaryOutput,
BeneficiaryVout,
InvoiceExpired,
NoContract,
InsufficientState,
TooManyInputs,
TooManyExtras,
Builder(BuilderError),
}
Variants§
NoExtraOrChange(AssignmentType)
no outputs available to store state of type {0}
NoBeneficiaryOutput
the provided PSBT doesn’t pay any sats to the RGB beneficiary address.
BeneficiaryVout
beneficiary output number is given when secret seal is used.
InvoiceExpired
expired invoice.
NoContract
the invoice contains no contract information.
InsufficientState
the invoice requirements can’t be fulfilled using available assets or smart contract state.
TooManyInputs
the spent UTXOs contain too many seals which can’t fit the state transition input limit.
TooManyExtras
the operation produces too many extra state transitions which can’t fit the container requirements.
Builder(BuilderError)
Trait Implementations§
Source§impl Clone for ComposeError
impl Clone for ComposeError
Source§fn clone(&self) -> ComposeError
fn clone(&self) -> ComposeError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ComposeError
impl Debug for ComposeError
Source§impl Display for ComposeError
impl Display for ComposeError
Source§impl Error for ComposeError
impl Error for ComposeError
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()
Source§impl From<BuilderError> for ComposeError
impl From<BuilderError> for ComposeError
Source§fn from(v: BuilderError) -> Self
fn from(v: BuilderError) -> Self
Converts to this type from the input type.
Source§impl From<ComposeError> for InputError
impl From<ComposeError> for InputError
Source§fn from(v: ComposeError) -> Self
fn from(v: ComposeError) -> Self
Converts to this type from the input type.
Source§impl<S: StashProvider, H: StateProvider, P: IndexProvider> From<ComposeError> for StockError<S, H, P, ComposeError>
impl<S: StashProvider, H: StateProvider, P: IndexProvider> From<ComposeError> for StockError<S, H, P, ComposeError>
Source§fn from(err: ComposeError) -> Self
fn from(err: ComposeError) -> Self
Converts to this type from the input type.
Source§impl From<ComposeError> for String
impl From<ComposeError> for String
Source§fn from(err: ComposeError) -> Self
fn from(err: ComposeError) -> Self
Converts to this type from the input type.
Source§impl From<Infallible> for ComposeError
impl From<Infallible> for ComposeError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ComposeError
impl PartialEq for ComposeError
impl Eq for ComposeError
impl StructuralPartialEq for ComposeError
Auto Trait Implementations§
impl Freeze for ComposeError
impl !RefUnwindSafe for ComposeError
impl Send for ComposeError
impl Sync for ComposeError
impl Unpin for ComposeError
impl !UnwindSafe for ComposeError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.