pub enum IndexError<P>where
P: IndexProvider,{
ReadProvider(<P as IndexReadProvider>::Error),
WriteProvider(<P as IndexWriteProvider>::Error),
Inconsistency(IndexInconsistency),
}Variants§
ReadProvider(<P as IndexReadProvider>::Error)
Connectivity errors which may be recoverable and temporary.
WriteProvider(<P as IndexWriteProvider>::Error)
Connectivity errors which may be recoverable and temporary.
Inconsistency(IndexInconsistency)
{0}
It may happen due to RGB ops library bug, or indicate internal stash inconsistency and compromised index storage.
Trait Implementations§
Source§impl<P> Debug for IndexError<P>where
P: Debug + IndexProvider,
impl<P> Debug for IndexError<P>where
P: Debug + IndexProvider,
Source§impl<P> Display for IndexError<P>where
P: IndexProvider,
impl<P> Display for IndexError<P>where
P: IndexProvider,
Source§impl<P> Error for IndexError<P>where
P: IndexProvider,
impl<P> Error for IndexError<P>where
P: IndexProvider,
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<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<P> From<IndexError<P>> for Stringwhere
P: IndexProvider,
impl<P> From<IndexError<P>> for Stringwhere
P: IndexProvider,
Source§fn from(err: IndexError<P>) -> String
fn from(err: IndexError<P>) -> String
Converts to this type from the input type.
Source§impl<P> From<IndexReadError<<P as IndexReadProvider>::Error>> for IndexError<P>where
P: IndexProvider,
impl<P> From<IndexReadError<<P as IndexReadProvider>::Error>> for IndexError<P>where
P: IndexProvider,
Source§fn from(err: IndexReadError<<P as IndexReadProvider>::Error>) -> IndexError<P>
fn from(err: IndexReadError<<P as IndexReadProvider>::Error>) -> IndexError<P>
Converts to this type from the input type.
Source§impl<P> From<IndexWriteError<<P as IndexWriteProvider>::Error>> for IndexError<P>where
P: IndexProvider,
impl<P> From<IndexWriteError<<P as IndexWriteProvider>::Error>> for IndexError<P>where
P: IndexProvider,
Source§fn from(err: IndexWriteError<<P as IndexWriteProvider>::Error>) -> IndexError<P>
fn from(err: IndexWriteError<<P as IndexWriteProvider>::Error>) -> IndexError<P>
Converts to this type from the input type.
Auto Trait Implementations§
impl<P> Freeze for IndexError<P>
impl<P> RefUnwindSafe for IndexError<P>where
<P as IndexReadProvider>::Error: RefUnwindSafe,
<P as IndexWriteProvider>::Error: RefUnwindSafe,
impl<P> Send for IndexError<P>
impl<P> Sync for IndexError<P>
impl<P> Unpin for IndexError<P>
impl<P> UnwindSafe for IndexError<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