pub enum UtilsError {
HDKError(WasmError),
UnexpectedState(String),
DeserializationError(&'static str, Option<EntryType>),
WrongEntryTypeError(ZomeIndex, EntryDefIndex, ZomeIndex, EntryDefIndex),
RecordHasNoEntry(ActionHash, ActionType),
EntryNotFoundError(EntryHash, Option<String>),
ActionNotFoundError(ActionHash, Option<String>),
NotOriginEntryError(ActionHash),
}Expand description
The potential Error types for this CRUD library
Variants§
HDKError(WasmError)
A catch all enum for errors raised by HDK methods
UnexpectedState(String)
DeserializationError(&'static str, Option<EntryType>)
This means the fetched Record could not be deserialized to the given entry type
WrongEntryTypeError(ZomeIndex, EntryDefIndex, ZomeIndex, EntryDefIndex)
This indicates that the deserialized EntryType and the Record EntryType do not match
RecordHasNoEntry(ActionHash, ActionType)
A Record was expected to have an App Entry but it does not
EntryNotFoundError(EntryHash, Option<String>)
Received ‘None’ when attempting to fetch a Record via EntryHash
ActionNotFoundError(ActionHash, Option<String>)
Received ‘None’ when attempting to fetch a Record via ActionHash
NotOriginEntryError(ActionHash)
This functions as an integrity check to ensure the CRUD model is understood
Trait Implementations§
Source§impl Debug for UtilsError
impl Debug for UtilsError
Source§impl Display for UtilsError
impl Display for UtilsError
Source§impl Error for UtilsError
impl Error for UtilsError
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 From<Infallible> for UtilsError
impl From<Infallible> for UtilsError
Source§fn from(error: Infallible) -> Self
fn from(error: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<UtilsError> for WasmError
impl From<UtilsError> for WasmError
Source§fn from(error: UtilsError) -> Self
fn from(error: UtilsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UtilsError
impl RefUnwindSafe for UtilsError
impl Send for UtilsError
impl Sync for UtilsError
impl Unpin for UtilsError
impl UnwindSafe for UtilsError
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.Source§impl<T> Upcastable for T
impl<T> Upcastable for T
Source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
Source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref