pub enum TraitKitError {
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,
},
}Expand description
Unified trait-kit error type.
Follows the ProjectNameError naming convention used across the base workspace.
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 Debug for TraitKitError
impl Debug for TraitKitError
Source§impl Display for TraitKitError
impl Display for TraitKitError
Source§impl Error for TraitKitError
impl Error for TraitKitError
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 TraitKitError
impl !Sync for TraitKitError
impl !UnwindSafe for TraitKitError
impl Freeze for TraitKitError
impl Send for TraitKitError
impl Unpin for TraitKitError
impl UnsafeUnpin for TraitKitError
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