pub enum Error {
CoreError(Error),
HostComponentError(Error),
LoaderError(Error),
MetadataError(String),
JsonError(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.
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()
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§
§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.