pub enum Error {
Show 25 variants
CommitError(Cow<'static, str>),
CompileError(Arc<CompileError>),
CompositeSerializerError(Arc<CompositeSerializerError<BufferSerializerError, FixedSizeScratchError, Infallible>>),
ContractCacheError(Arc<Error>),
ContractDoesNotExist(ContractId),
DeserializeError(Arc<DeserializeError>),
ExportError(Arc<ExportError>),
FeedPulled(SendError<Vec<u8>>),
Infallible(Infallible),
InitalizationError(Cow<'static, str>),
InstantiationError(Arc<InstantiationError>),
MemorySetupError(Arc<Error>),
MissingFeed,
MissingHostData(String),
MissingHostQuery(String),
OutOfPoints,
ParsingError(BinaryReaderError),
PersistenceError(Arc<Error>),
RestoreError(Arc<Error>),
RuntimeError(RuntimeError),
SerializeError(Arc<SerializeError>),
SessionError(Cow<'static, str>),
Trap(Arc<Trap>),
Utf8(Utf8Error),
ValidationError,
}Expand description
The error type returned by the piecrust VM.
Variants§
CommitError(Cow<'static, str>)
CompileError(Arc<CompileError>)
CompositeSerializerError(Arc<CompositeSerializerError<BufferSerializerError, FixedSizeScratchError, Infallible>>)
ContractCacheError(Arc<Error>)
ContractDoesNotExist(ContractId)
DeserializeError(Arc<DeserializeError>)
ExportError(Arc<ExportError>)
FeedPulled(SendError<Vec<u8>>)
Infallible(Infallible)
InitalizationError(Cow<'static, str>)
InstantiationError(Arc<InstantiationError>)
MemorySetupError(Arc<Error>)
MissingFeed
MissingHostData(String)
MissingHostQuery(String)
OutOfPoints
ParsingError(BinaryReaderError)
PersistenceError(Arc<Error>)
RestoreError(Arc<Error>)
RuntimeError(RuntimeError)
SerializeError(Arc<SerializeError>)
SessionError(Cow<'static, str>)
Trap(Arc<Trap>)
Utf8(Utf8Error)
ValidationError
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<A, B> From<CheckArchiveError<A, B>> for Error
impl<A, B> From<CheckArchiveError<A, B>> for Error
source§fn from(_e: CheckArchiveError<A, B>) -> Self
fn from(_e: CheckArchiveError<A, B>) -> Self
Converts to this type from the input type.
source§impl From<CompileError> for Error
impl From<CompileError> for Error
source§fn from(e: CompileError) -> Self
fn from(e: CompileError) -> Self
Converts to this type from the input type.
source§impl From<CompositeSerializerError<BufferSerializerError, FixedSizeScratchError, Infallible>> for Error
impl From<CompositeSerializerError<BufferSerializerError, FixedSizeScratchError, Infallible>> for Error
source§fn from(
e: CompositeSerializerError<BufferSerializerError, FixedSizeScratchError, Infallible>
) -> Self
fn from( e: CompositeSerializerError<BufferSerializerError, FixedSizeScratchError, Infallible> ) -> Self
Converts to this type from the input type.
source§impl From<DeserializeError> for Error
impl From<DeserializeError> for Error
source§fn from(e: DeserializeError) -> Self
fn from(e: DeserializeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for ContractError
impl From<Error> for ContractError
source§impl From<ExportError> for Error
impl From<ExportError> for Error
source§fn from(e: ExportError) -> Self
fn from(e: ExportError) -> Self
Converts to this type from the input type.
source§impl From<Infallible> for Error
impl From<Infallible> for Error
source§fn from(err: Infallible) -> Self
fn from(err: Infallible) -> Self
Converts to this type from the input type.
source§impl From<InstantiationError> for Error
impl From<InstantiationError> for Error
source§fn from(e: InstantiationError) -> Self
fn from(e: InstantiationError) -> Self
Converts to this type from the input type.
source§impl From<SerializeError> for Error
impl From<SerializeError> for Error
source§fn from(e: SerializeError) -> Self
fn from(e: SerializeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§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 Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
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> 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.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Upcastable for Twhere
T: Any + Send + Sync + 'static,
impl<T> Upcastable for Twhere T: Any + Send + Sync + 'static,
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref