pub enum RequestScopeRejection {
MissingScope,
ResolutionFailed(NidusError),
}Expand description
Rejection returned when a request-scoped provider cannot be extracted.
Variants§
MissingScope
The request did not contain a Nidus request scope.
ResolutionFailed(NidusError)
The request scope failed to resolve the requested provider.
Trait Implementations§
Source§impl Debug for RequestScopeRejection
impl Debug for RequestScopeRejection
Source§impl Display for RequestScopeRejection
impl Display for RequestScopeRejection
Source§impl Error for RequestScopeRejection
impl Error for RequestScopeRejection
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()
Source§impl IntoResponse for RequestScopeRejection
impl IntoResponse for RequestScopeRejection
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for RequestScopeRejection
impl RefUnwindSafe for RequestScopeRejection
impl Send for RequestScopeRejection
impl Sync for RequestScopeRejection
impl Unpin for RequestScopeRejection
impl UnsafeUnpin for RequestScopeRejection
impl UnwindSafe for RequestScopeRejection
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