pub enum KitError {
CycleDetected {
cycle: Vec<&'static str>,
},
DependencyMissing {
module: &'static str,
missing: &'static str,
},
NotReady,
AlreadyRegistered {
module: &'static str,
},
BuildFailed {
context: &'static str,
source: Box<dyn Error + Send + 'static>,
},
MissingCapability {
key: &'static str,
},
MissingConfig {
key: &'static str,
},
}Variants§
CycleDetected
DependencyMissing
NotReady
👎Deprecated:
typestate pattern makes this unreachable; will be removed in 0.3.0
AlreadyRegistered
BuildFailed
MissingCapability
MissingConfig
Trait Implementations§
Source§impl Error for KitError
impl Error for KitError
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 KitError
impl !Sync for KitError
impl !UnwindSafe for KitError
impl Freeze for KitError
impl Send for KitError
impl Unpin for KitError
impl UnsafeUnpin for KitError
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