pub enum IndexInconsistency {
ContractAbsent(ContractId),
BundleAbsent(OpId),
OutpointUnknown(OutPoint, ContractId),
DistinctBundleContract {
bundle_id: BundleId,
present: ContractId,
expected: ContractId,
},
DistinctBundleOp {
opid: OpId,
present: BundleId,
expected: BundleId,
},
BundleContractUnknown(BundleId),
BundleWitnessUnknown(BundleId),
}Variants§
ContractAbsent(ContractId)
contract {0} is unknown. Probably you haven’t imported the contract yet.
BundleAbsent(OpId)
bundle matching state transition {0} is absent in the index.
OutpointUnknown(OutPoint, ContractId)
outpoint {0} is not part of the contract {1}.
DistinctBundleContract
index already contains information about bundle {bundle_id} which specifies contract {present} instead of contract {expected}.
DistinctBundleOp
index already contains information about operation {opid} which specifies bundle {present} instead of bundle {expected}.
BundleContractUnknown(BundleId)
contract id for bundle {0} is not known.
BundleWitnessUnknown(BundleId)
absent information about witness for bundle {0}.
Trait Implementations§
Source§impl Clone for IndexInconsistency
impl Clone for IndexInconsistency
Source§fn clone(&self) -> IndexInconsistency
fn clone(&self) -> IndexInconsistency
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 IndexInconsistency
impl Debug for IndexInconsistency
Source§impl Display for IndexInconsistency
impl Display for IndexInconsistency
Source§impl Error for IndexInconsistency
impl Error for IndexInconsistency
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<E> From<IndexInconsistency> for IndexReadError<E>where
E: Error,
impl<E> From<IndexInconsistency> for IndexReadError<E>where
E: Error,
Source§fn from(v: IndexInconsistency) -> IndexReadError<E>
fn from(v: IndexInconsistency) -> IndexReadError<E>
Converts to this type from the input type.
Source§impl<E> From<IndexInconsistency> for IndexWriteError<E>where
E: Error,
impl<E> From<IndexInconsistency> for IndexWriteError<E>where
E: Error,
Source§fn from(v: IndexInconsistency) -> IndexWriteError<E>
fn from(v: IndexInconsistency) -> IndexWriteError<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 From<IndexInconsistency> for String
impl From<IndexInconsistency> for String
Source§fn from(err: IndexInconsistency) -> String
fn from(err: IndexInconsistency) -> String
Converts to this type from the input type.
Source§impl PartialEq for IndexInconsistency
impl PartialEq for IndexInconsistency
impl Eq for IndexInconsistency
impl StructuralPartialEq for IndexInconsistency
Auto Trait Implementations§
impl Freeze for IndexInconsistency
impl RefUnwindSafe for IndexInconsistency
impl Send for IndexInconsistency
impl Sync for IndexInconsistency
impl Unpin for IndexInconsistency
impl UnwindSafe for IndexInconsistency
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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