Enum indradb_plugin_host::Error
source · #[non_exhaustive]
pub enum Error {
Json(JsonError),
IndraDB(IndraDBError),
InvalidArgument(String),
Other(Box<dyn StdError + Send + Sync>),
}Expand description
A plugin error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Json(JsonError)
Json (de-)serialization error.
IndraDB(IndraDBError)
IndraDB error.
InvalidArgument(String)
Other(Box<dyn StdError + Send + Sync>)
Any other kind of error.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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()