pub enum StateError<P>where
P: StateProvider,{
ReadProvider(<P as StateReadProvider>::Error),
WriteProvider(<P as StateWriteProvider>::Error),
Resolver(Txid, WitnessResolverError),
AbsentValidWitness,
Inconsistency(StateInconsistency),
}Variants§
ReadProvider(<P as StateReadProvider>::Error)
Connectivity errors which may be recoverable and temporary.
WriteProvider(<P as StateWriteProvider>::Error)
Connectivity errors which may be recoverable and temporary.
Resolver(Txid, WitnessResolverError)
witness {0} can’t be resolved: {1}
AbsentValidWitness
valid (non-archived) witness is absent in the list of witnesses for a state transition bundle.
Inconsistency(StateInconsistency)
{0}
It may happen due to RGB ops library bug, or indicate internal stash inconsistency and compromised stash data storage.
Trait Implementations§
Source§impl<P> Debug for StateError<P>where
P: Debug + StateProvider,
impl<P> Debug for StateError<P>where
P: Debug + StateProvider,
Source§impl<P> Display for StateError<P>where
P: StateProvider,
impl<P> Display for StateError<P>where
P: StateProvider,
Source§impl<P> Error for StateError<P>where
P: StateProvider,
impl<P> Error for StateError<P>where
P: StateProvider,
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, 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<P> From<StateError<P>> for Stringwhere
P: StateProvider,
impl<P> From<StateError<P>> for Stringwhere
P: StateProvider,
Source§fn from(err: StateError<P>) -> String
fn from(err: StateError<P>) -> String
Converts to this type from the input type.
Source§impl<P> From<StateInconsistency> for StateError<P>where
P: StateProvider,
impl<P> From<StateInconsistency> for StateError<P>where
P: StateProvider,
Source§fn from(v: StateInconsistency) -> StateError<P>
fn from(v: StateInconsistency) -> StateError<P>
Converts to this type from the input type.
Auto Trait Implementations§
impl<P> Freeze for StateError<P>
impl<P> RefUnwindSafe for StateError<P>where
<P as StateReadProvider>::Error: RefUnwindSafe,
<P as StateWriteProvider>::Error: RefUnwindSafe,
impl<P> Send for StateError<P>
impl<P> Sync for StateError<P>
impl<P> Unpin for StateError<P>
impl<P> UnwindSafe for StateError<P>
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