pub enum Error {
CoreError(Error),
HostComponentError(Error),
LoaderError(Error),
MetadataError(String),
JsonError(Error),
ValidationError(Error),
}
Expand description
Errors returned by methods in this crate.
Variants§
CoreError(Error)
An error propagated from the [spin_core
] crate.
HostComponentError(Error)
An error from a [DynamicHostComponent
].
LoaderError(Error)
An error from a [Loader
] implementation.
MetadataError(String)
An error indicating missing or unexpected metadata.
JsonError(Error)
An error indicating failed JSON (de)serialization.
ValidationError(Error)
A validation error that can be presented directly to the user.
Trait Implementations§
§impl Error for Error
impl Error for Error
§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()
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> 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
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.