pub enum StockError<S = MemStash, H = MemState, P = MemIndex, E = Infallible>{
Show 15 variants
InvalidInput(E),
Resolver(String),
StashRead(<S as StashReadProvider>::Error),
StashWrite(<S as StashWriteProvider>::Error),
IndexRead(<P as IndexReadProvider>::Error),
IndexWrite(<P as IndexWriteProvider>::Error),
StateRead(<H as StateReadProvider>::Error),
StateWrite(<H as StateWriteProvider>::Error),
StashInconsistency(StashInconsistency),
StateInconsistency(StateInconsistency),
IndexInconsistency(IndexInconsistency),
StashData(StashDataError),
AbsentValidWitness,
BundlesInconsistency,
WitnessUnresolved(Txid, WitnessResolverError),
}Variants§
InvalidInput(E)
Resolver(String)
StashRead(<S as StashReadProvider>::Error)
StashWrite(<S as StashWriteProvider>::Error)
IndexRead(<P as IndexReadProvider>::Error)
IndexWrite(<P as IndexWriteProvider>::Error)
StateRead(<H as StateReadProvider>::Error)
StateWrite(<H as StateWriteProvider>::Error)
StashInconsistency(StashInconsistency)
{0}
It may happen due to RGB ops library bug, or indicate internal stash inconsistency and compromised stash data storage.
StateInconsistency(StateInconsistency)
state for contract {0} is not known.
It may happen due to RGB ops library bug, or indicate internal stash inconsistency and compromised stash data storage.
IndexInconsistency(IndexInconsistency)
{0}
It may happen due to RGB ops library bug, or indicate internal stash inconsistency and compromised stash data storage.
StashData(StashDataError)
AbsentValidWitness
valid (non-archived) witness is absent in the list of witnesses for a state transition bundle.
BundlesInconsistency
Unable to sort bundles because of data inconsistency.
WitnessUnresolved(Txid, WitnessResolverError)
witness {0} can’t be resolved: {1}
Trait Implementations§
Source§impl<S, H, P, E> Debug for StockError<S, H, P, E>where
S: Debug + StashProvider,
H: Debug + StateProvider,
P: Debug + IndexProvider,
E: Debug + Error,
impl<S, H, P, E> Debug for StockError<S, H, P, E>where
S: Debug + StashProvider,
H: Debug + StateProvider,
P: Debug + IndexProvider,
E: Debug + Error,
Source§impl<S, H, P, E> Display for StockError<S, H, P, E>
impl<S, H, P, E> Display for StockError<S, H, P, E>
Source§impl<S, H, P, E> Error for StockError<S, H, P, E>
impl<S, H, P, E> Error for StockError<S, H, P, E>
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<S, H, P> From<BuilderError> for StockError<S, H, P, ComposeError>
impl<S, H, P> From<BuilderError> for StockError<S, H, P, ComposeError>
Source§fn from(err: BuilderError) -> StockError<S, H, P, ComposeError>
fn from(err: BuilderError) -> StockError<S, H, P, ComposeError>
Converts to this type from the input type.
Source§impl<S, H, P> From<ComposeError> for StockError<S, H, P, ComposeError>
impl<S, H, P> From<ComposeError> for StockError<S, H, P, ComposeError>
Source§fn from(err: ComposeError) -> StockError<S, H, P, ComposeError>
fn from(err: ComposeError) -> StockError<S, H, P, ComposeError>
Converts to this type from the input type.
Source§impl<S, H, P> From<ConsignError> for StockError<S, H, P, ConsignError>
impl<S, H, P> From<ConsignError> for StockError<S, H, P, ConsignError>
Source§fn from(err: ConsignError) -> StockError<S, H, P, ConsignError>
fn from(err: ConsignError) -> StockError<S, H, P, ConsignError>
Converts to this type from the input type.
Source§impl<S, H, P> From<FasciaError> for StockError<S, H, P, FasciaError>
impl<S, H, P> From<FasciaError> for StockError<S, H, P, FasciaError>
Source§fn from(err: FasciaError) -> StockError<S, H, P, FasciaError>
fn from(err: FasciaError) -> StockError<S, H, P, FasciaError>
Converts to this type from the input type.
Source§impl<S, H, P, E> From<IndexError<P>> for StockError<S, H, P, E>
impl<S, H, P, E> From<IndexError<P>> for StockError<S, H, P, E>
Source§fn from(err: IndexError<P>) -> StockError<S, H, P, E>
fn from(err: IndexError<P>) -> StockError<S, H, P, E>
Converts to this type from the input type.
Source§impl<S, H, P, E> From<IndexInconsistency> for StockError<S, H, P, E>
impl<S, H, P, E> From<IndexInconsistency> for StockError<S, H, P, E>
Source§fn from(v: IndexInconsistency) -> StockError<S, H, P, E>
fn from(v: IndexInconsistency) -> StockError<S, H, P, E>
Converts to this type from the input type.
Source§impl<S, H, P> From<MergeRevealError> for StockError<S, H, P, ConsignError>
impl<S, H, P> From<MergeRevealError> for StockError<S, H, P, ConsignError>
Source§fn from(err: MergeRevealError) -> StockError<S, H, P, ConsignError>
fn from(err: MergeRevealError) -> StockError<S, H, P, ConsignError>
Converts to this type from the input type.
Source§impl<S, H, P, E> From<StashDataError> for StockError<S, H, P, E>
impl<S, H, P, E> From<StashDataError> for StockError<S, H, P, E>
Source§fn from(v: StashDataError) -> StockError<S, H, P, E>
fn from(v: StashDataError) -> StockError<S, H, P, E>
Converts to this type from the input type.
Source§impl<S, H, P, E> From<StashError<S>> for StockError<S, H, P, E>
impl<S, H, P, E> From<StashError<S>> for StockError<S, H, P, E>
Source§fn from(err: StashError<S>) -> StockError<S, H, P, E>
fn from(err: StashError<S>) -> StockError<S, H, P, E>
Converts to this type from the input type.
Source§impl<S, H, P, E> From<StashInconsistency> for StockError<S, H, P, E>
impl<S, H, P, E> From<StashInconsistency> for StockError<S, H, P, E>
Source§fn from(v: StashInconsistency) -> StockError<S, H, P, E>
fn from(v: StashInconsistency) -> StockError<S, H, P, E>
Converts to this type from the input type.
Source§impl<S, H, P, E> From<StateError<H>> for StockError<S, H, P, E>
impl<S, H, P, E> From<StateError<H>> for StockError<S, H, P, E>
Source§fn from(err: StateError<H>) -> StockError<S, H, P, E>
fn from(err: StateError<H>) -> StockError<S, H, P, E>
Converts to this type from the input type.
Source§impl<S, H, P, E> From<StateInconsistency> for StockError<S, H, P, E>
impl<S, H, P, E> From<StateInconsistency> for StockError<S, H, P, E>
Source§fn from(v: StateInconsistency) -> StockError<S, H, P, E>
fn from(v: StateInconsistency) -> StockError<S, H, P, E>
Converts to this type from the input type.
Source§impl From<StockError<MemStash, MemState, MemIndex, ComposeError>> for CompositionError
impl From<StockError<MemStash, MemState, MemIndex, ComposeError>> for CompositionError
Source§fn from(v: StockErrorMem<ComposeError>) -> Self
fn from(v: StockErrorMem<ComposeError>) -> Self
Converts to this type from the input type.
Source§impl From<StockError<MemStash, MemState, MemIndex, ConsignError>> for CompletionError
impl From<StockError<MemStash, MemState, MemIndex, ConsignError>> for CompletionError
Source§fn from(v: StockErrorMem<ConsignError>) -> Self
fn from(v: StockErrorMem<ConsignError>) -> Self
Converts to this type from the input type.
Source§impl From<StockError<MemStash, MemState, MemIndex, FasciaError>> for CompletionError
impl From<StockError<MemStash, MemState, MemIndex, FasciaError>> for CompletionError
Source§fn from(v: StockErrorMem<FasciaError>) -> Self
fn from(v: StockErrorMem<FasciaError>) -> Self
Converts to this type from the input type.
Source§impl From<StockError<MemStash, MemState, MemIndex, InputError>> for WalletError
impl From<StockError<MemStash, MemState, MemIndex, InputError>> for WalletError
Source§fn from(v: StockErrorAll) -> Self
fn from(v: StockErrorAll) -> Self
Converts to this type from the input type.
Source§impl<S, H, P> From<StockError<S, H, P>> for StockError<S, H, P, ComposeError>
impl<S, H, P> From<StockError<S, H, P>> for StockError<S, H, P, ComposeError>
Source§fn from(err: StockError<S, H, P>) -> StockError<S, H, P, ComposeError>
fn from(err: StockError<S, H, P>) -> StockError<S, H, P, ComposeError>
Converts to this type from the input type.
Source§impl<S, H, P> From<StockError<S, H, P>> for StockError<S, H, P, ConsignError>
impl<S, H, P> From<StockError<S, H, P>> for StockError<S, H, P, ConsignError>
Source§fn from(err: StockError<S, H, P>) -> StockError<S, H, P, ConsignError>
fn from(err: StockError<S, H, P>) -> StockError<S, H, P, ConsignError>
Converts to this type from the input type.
Source§impl<S, H, P> From<StockError<S, H, P>> for StockError<S, H, P, FasciaError>
impl<S, H, P> From<StockError<S, H, P>> for StockError<S, H, P, FasciaError>
Source§fn from(err: StockError<S, H, P>) -> StockError<S, H, P, FasciaError>
fn from(err: StockError<S, H, P>) -> StockError<S, H, P, FasciaError>
Converts to this type from the input type.
Source§impl<S, H, P> From<StockError<S, H, P>> for StockError<S, H, P, InputError>
impl<S, H, P> From<StockError<S, H, P>> for StockError<S, H, P, InputError>
Source§fn from(err: StockError<S, H, P>) -> StockError<S, H, P, InputError>
fn from(err: StockError<S, H, P>) -> StockError<S, H, P, InputError>
Converts to this type from the input type.
Source§impl<S, H, P> From<StockError<S, H, P, ComposeError>> for StockError<S, H, P, InputError>
impl<S, H, P> From<StockError<S, H, P, ComposeError>> for StockError<S, H, P, InputError>
Source§fn from(
err: StockError<S, H, P, ComposeError>,
) -> StockError<S, H, P, InputError>
fn from( err: StockError<S, H, P, ComposeError>, ) -> StockError<S, H, P, InputError>
Converts to this type from the input type.
Source§impl<S, H, P> From<StockError<S, H, P, ConsignError>> for StockError<S, H, P, InputError>
impl<S, H, P> From<StockError<S, H, P, ConsignError>> for StockError<S, H, P, InputError>
Source§fn from(
err: StockError<S, H, P, ConsignError>,
) -> StockError<S, H, P, InputError>
fn from( err: StockError<S, H, P, ConsignError>, ) -> StockError<S, H, P, InputError>
Converts to this type from the input type.
Source§impl<S, H, P, E> From<StockError<S, H, P, E>> for String
impl<S, H, P, E> From<StockError<S, H, P, E>> for String
Source§fn from(err: StockError<S, H, P, E>) -> String
fn from(err: StockError<S, H, P, E>) -> String
Converts to this type from the input type.
Source§impl<S, H, P> From<StockError<S, H, P, FasciaError>> for StockError<S, H, P, InputError>
impl<S, H, P> From<StockError<S, H, P, FasciaError>> for StockError<S, H, P, InputError>
Source§fn from(
err: StockError<S, H, P, FasciaError>,
) -> StockError<S, H, P, InputError>
fn from( err: StockError<S, H, P, FasciaError>, ) -> StockError<S, H, P, InputError>
Converts to this type from the input type.
Source§impl From<StockError> for CompositionError
impl From<StockError> for CompositionError
Source§fn from(v: StockError) -> Self
fn from(v: StockError) -> Self
Converts to this type from the input type.
Source§impl From<StockError> for WalletError
impl From<StockError> for WalletError
Source§fn from(v: StockError) -> Self
fn from(v: StockError) -> Self
Converts to this type from the input type.
Source§fn from(err: UnrelatedTransition) -> StockError<S, H, P, ConsignError>
fn from(err: UnrelatedTransition) -> StockError<S, H, P, ConsignError>
Converts to this type from the input type.
Auto Trait Implementations§
impl<S, H, P, E> Freeze for StockError<S, H, P, E>where
E: Freeze,
<S as StashReadProvider>::Error: Freeze,
<S as StashWriteProvider>::Error: Freeze,
<P as IndexReadProvider>::Error: Freeze,
<P as IndexWriteProvider>::Error: Freeze,
<H as StateReadProvider>::Error: Freeze,
<H as StateWriteProvider>::Error: Freeze,
impl<S, H, P, E> RefUnwindSafe for StockError<S, H, P, E>where
E: RefUnwindSafe,
<S as StashReadProvider>::Error: RefUnwindSafe,
<S as StashWriteProvider>::Error: RefUnwindSafe,
<P as IndexReadProvider>::Error: RefUnwindSafe,
<P as IndexWriteProvider>::Error: RefUnwindSafe,
<H as StateReadProvider>::Error: RefUnwindSafe,
<H as StateWriteProvider>::Error: RefUnwindSafe,
impl<S, H, P, E> Send for StockError<S, H, P, E>where
E: Send,
<S as StashReadProvider>::Error: Send,
<S as StashWriteProvider>::Error: Send,
<P as IndexReadProvider>::Error: Send,
<P as IndexWriteProvider>::Error: Send,
<H as StateReadProvider>::Error: Send,
<H as StateWriteProvider>::Error: Send,
impl<S, H, P, E> Sync for StockError<S, H, P, E>where
E: Sync,
<S as StashReadProvider>::Error: Sync,
<S as StashWriteProvider>::Error: Sync,
<P as IndexReadProvider>::Error: Sync,
<P as IndexWriteProvider>::Error: Sync,
<H as StateReadProvider>::Error: Sync,
<H as StateWriteProvider>::Error: Sync,
impl<S, H, P, E> Unpin for StockError<S, H, P, E>where
E: Unpin,
<S as StashReadProvider>::Error: Unpin,
<S as StashWriteProvider>::Error: Unpin,
<P as IndexReadProvider>::Error: Unpin,
<P as IndexWriteProvider>::Error: Unpin,
<H as StateReadProvider>::Error: Unpin,
<H as StateWriteProvider>::Error: Unpin,
impl<S, H, P, E> UnwindSafe for StockError<S, H, P, E>where
E: UnwindSafe,
<S as StashReadProvider>::Error: UnwindSafe,
<S as StashWriteProvider>::Error: UnwindSafe,
<P as IndexReadProvider>::Error: UnwindSafe,
<P as IndexWriteProvider>::Error: UnwindSafe,
<H as StateReadProvider>::Error: UnwindSafe,
<H as StateWriteProvider>::Error: UnwindSafe,
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<I> IntoResettable<String> for I
impl<I> IntoResettable<String> for I
Source§fn into_resettable(self) -> Resettable<String>
fn into_resettable(self) -> Resettable<String>
Convert to the intended resettable type