pub enum PluginError {
DuplicateService {
key: &'static str,
},
DuplicatePlugin {
name: String,
},
UnknownDependency {
plugin: String,
dependency: String,
},
DependencyCycle {
cycle: Vec<String>,
},
Apply {
plugin: String,
source: Box<dyn Error + Send + Sync>,
},
}Expand description
Named errors for the plugin subsystem (acceptance criteria).
Variants§
DuplicateService
A second registration for an already-occupied stable service key.
DuplicatePlugin
Two plugins registered under the same name.
UnknownDependency
A plugin declared a dependency that no registered plugin carries.
DependencyCycle
The declared dependency graph contains a cycle; cycle lists its
members in walk order.
Apply
A plugin’s apply failed; already-activated plugins were unwound in
reverse activation order.
Trait Implementations§
Source§impl Debug for PluginError
impl Debug for PluginError
Source§impl Display for PluginError
impl Display for PluginError
Source§impl Error for PluginError
impl Error for PluginError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for PluginError
impl !UnwindSafe for PluginError
impl Forget for PluginError
impl Freeze for PluginError
impl Move for PluginError
impl Send for PluginError
impl Sync for PluginError
impl Unpin for PluginError
impl UnsafeUnpin for PluginError
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