StockError

Enum StockError 

Source
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>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<S, H, P, E> Display for StockError<S, H, P, E>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<S, H, P, E> Error for StockError<S, H, P, E>

1.30.0 · Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl<S, H, P> From<BuilderError> for StockError<S, H, P, ComposeError>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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

Source§

fn from(v: StockErrorMem<ComposeError>) -> Self

Converts to this type from the input type.
Source§

impl From<StockError<MemStash, MemState, MemIndex, ConsignError>> for CompletionError

Source§

fn from(v: StockErrorMem<ConsignError>) -> Self

Converts to this type from the input type.
Source§

impl From<StockError<MemStash, MemState, MemIndex, FasciaError>> for CompletionError

Source§

fn from(v: StockErrorMem<FasciaError>) -> Self

Converts to this type from the input type.
Source§

impl From<StockError<MemStash, MemState, MemIndex, InputError>> for WalletError

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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

Source§

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>

Source§

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

Source§

fn from(v: StockError) -> Self

Converts to this type from the input type.
Source§

impl From<StockError> for WalletError

Source§

fn from(v: StockError) -> Self

Converts to this type from the input type.
Source§

impl<S, H, P> From<UnrelatedTransition> for StockError<S, H, P, ConsignError>

Source§

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>

§

impl<S, H, P, E> RefUnwindSafe for StockError<S, H, P, E>

§

impl<S, H, P, E> Send for StockError<S, H, P, E>

§

impl<S, H, P, E> Sync for StockError<S, H, P, E>

§

impl<S, H, P, E> Unpin for StockError<S, H, P, E>

§

impl<S, H, P, E> UnwindSafe for StockError<S, H, P, E>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<I> IntoResettable<String> for I
where I: Into<String>,

Source§

fn into_resettable(self) -> Resettable<String>

Convert to the intended resettable type
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V