pub enum AdminError {
NotFound,
Forbidden,
Internal(Error),
}Expand description
A typed error an admin handler can return.
Variants§
NotFound
The requested record does not exist (404).
Forbidden
The signed-in operator lacks the required permission (403).
Internal(Error)
An unexpected failure (500): the cause is logged and masked.
Trait Implementations§
Source§impl Debug for AdminError
impl Debug for AdminError
Source§impl From<AuthError> for AdminError
impl From<AuthError> for AdminError
Source§impl From<CoreError> for AdminError
impl From<CoreError> for AdminError
Source§impl From<Error> for AdminError
impl From<Error> for AdminError
Source§impl From<Error> for AdminError
impl From<Error> for AdminError
Source§impl From<Error> for AdminError
impl From<Error> for AdminError
Source§impl IntoResponse for AdminError
impl IntoResponse for AdminError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for AdminError
impl RefUnwindSafe for AdminError
impl Send for AdminError
impl Sync for AdminError
impl Unpin for AdminError
impl UnsafeUnpin for AdminError
impl UnwindSafe for AdminError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more