pub enum DependencyInjectionError {
BuildFailed {
type_name: String,
source: Box<DependencyInjectionError>,
},
DependencyNotFound {
type_name: String,
},
CircularDependency,
}Variants§
Implementations§
Source§impl DependencyInjectionError
impl DependencyInjectionError
pub fn build_failed( type_name: impl Into<String>, source: DependencyInjectionError, ) -> Self
pub fn dependency_not_found(type_name: impl Into<String>) -> Self
pub fn diagnostic_context(&self) -> Vec<(String, String)>
pub fn dependency_path(&self) -> Option<&str>
pub fn missing_dependency_path(&self) -> Option<&str>
Trait Implementations§
Source§impl Debug for DependencyInjectionError
impl Debug for DependencyInjectionError
Source§impl Display for DependencyInjectionError
impl Display for DependencyInjectionError
Source§impl Error for DependencyInjectionError
impl Error for DependencyInjectionError
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 Freeze for DependencyInjectionError
impl RefUnwindSafe for DependencyInjectionError
impl Send for DependencyInjectionError
impl Sync for DependencyInjectionError
impl Unpin for DependencyInjectionError
impl UnsafeUnpin for DependencyInjectionError
impl UnwindSafe for DependencyInjectionError
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