pub enum GenjaError {
PluginsNotLoaded,
InventoryNotLoaded,
PluginNotFound(String),
NotInventoryPlugin(String),
AsyncInventoryPluginRequiresAsyncConstruction(String),
NotRunnerPlugin(String),
PluginLoad(String),
ConfigLoad(ConfigLoadError),
InventoryLoad(InventoryLoadError),
Message(String),
NotImplemented(&'static str),
}Expand description
Generic error type for core Genja operations.
Variants§
PluginsNotLoaded
Plugins have not been loaded for the runtime.
InventoryNotLoaded
Inventory has not been loaded for the runtime.
PluginNotFound(String)
A requested plugin name could not be found.
NotInventoryPlugin(String)
The named plugin is not an inventory plugin.
AsyncInventoryPluginRequiresAsyncConstruction(String)
The named plugin is an async-only inventory plugin and requires async construction.
NotRunnerPlugin(String)
The named plugin is not a runner plugin.
PluginLoad(String)
A plugin failed to load.
ConfigLoad(ConfigLoadError)
The configuration file could not be read, parsed, or validated.
InventoryLoad(InventoryLoadError)
Inventory loading failed.
Message(String)
A human-readable error message.
NotImplemented(&'static str)
Functionality is not implemented yet.
Trait Implementations§
Source§impl Clone for GenjaError
impl Clone for GenjaError
Source§fn clone(&self) -> GenjaError
fn clone(&self) -> GenjaError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GenjaError
impl Debug for GenjaError
Source§impl Display for GenjaError
impl Display for GenjaError
Source§impl Error for GenjaError
impl Error for GenjaError
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<&str> for GenjaError
impl From<&str> for GenjaError
Source§impl From<ConfigLoadError> for GenjaError
impl From<ConfigLoadError> for GenjaError
Source§fn from(value: ConfigLoadError) -> Self
fn from(value: ConfigLoadError) -> Self
Converts to this type from the input type.
Source§impl From<InventoryLoadError> for GenjaError
impl From<InventoryLoadError> for GenjaError
Source§fn from(value: InventoryLoadError) -> Self
fn from(value: InventoryLoadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GenjaError
impl RefUnwindSafe for GenjaError
impl Send for GenjaError
impl Sync for GenjaError
impl Unpin for GenjaError
impl UnsafeUnpin for GenjaError
impl UnwindSafe for GenjaError
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