pub enum ContainerError {
NotRegistered(&'static str),
TypeMismatch(&'static str),
MissingRouteParam(&'static str),
ModelNotFound,
}Expand description
Errors returned by Container operations and Axum extractors.
Variants§
NotRegistered(&'static str)
The requested type was never registered with bind() or singleton().
TypeMismatch(&'static str)
Internal type-map downcast failed — indicates a container bug, not user error.
MissingRouteParam(&'static str)
A required route path parameter was absent.
ModelNotFound
Route model binding found no record matching the route key.
Trait Implementations§
Source§impl Debug for ContainerError
impl Debug for ContainerError
Source§impl Display for ContainerError
impl Display for ContainerError
Source§impl Error for ContainerError
impl Error for ContainerError
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()
Auto Trait Implementations§
impl Freeze for ContainerError
impl RefUnwindSafe for ContainerError
impl Send for ContainerError
impl Sync for ContainerError
impl Unpin for ContainerError
impl UnsafeUnpin for ContainerError
impl UnwindSafe for ContainerError
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