pub enum DiErr {
RegistryError,
AsyncInitError,
TaskPanic,
InjectError,
}Expand description
DI 框架自身的业务错误码。
Variants§
Trait Implementations§
impl Copy for DiErr
impl Eq for DiErr
Source§impl Error for DiErr
impl Error for DiErr
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()
impl StructuralPartialEq for DiErr
Auto Trait Implementations§
impl Freeze for DiErr
impl RefUnwindSafe for DiErr
impl Send for DiErr
impl Sync for DiErr
impl Unpin for DiErr
impl UnsafeUnpin for DiErr
impl UnwindSafe for DiErr
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