pub enum GuardError<GuardCallErr> {
FromRequest(Error),
GuardCall(GuardCallErr),
}Variants§
Trait Implementations§
Source§impl<GuardCallErr: Debug> Debug for GuardError<GuardCallErr>
impl<GuardCallErr: Debug> Debug for GuardError<GuardCallErr>
Source§impl<GuardCallErr> Display for GuardError<GuardCallErr>where
GuardCallErr: Display,
impl<GuardCallErr> Display for GuardError<GuardCallErr>where
GuardCallErr: Display,
Source§impl<GuardCallErr> ResponseError for GuardError<GuardCallErr>where
GuardCallErr: ResponseError,
impl<GuardCallErr> ResponseError for GuardError<GuardCallErr>where
GuardCallErr: ResponseError,
Source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Returns appropriate status code for error. Read more
Source§fn error_response(&self) -> HttpResponse<BoxBody>
fn error_response(&self) -> HttpResponse<BoxBody>
Creates full response for error. Read more
Auto Trait Implementations§
impl<GuardCallErr> Freeze for GuardError<GuardCallErr>where
GuardCallErr: Freeze,
impl<GuardCallErr> !RefUnwindSafe for GuardError<GuardCallErr>
impl<GuardCallErr> !Send for GuardError<GuardCallErr>
impl<GuardCallErr> !Sync for GuardError<GuardCallErr>
impl<GuardCallErr> Unpin for GuardError<GuardCallErr>where
GuardCallErr: Unpin,
impl<GuardCallErr> UnsafeUnpin for GuardError<GuardCallErr>where
GuardCallErr: UnsafeUnpin,
impl<GuardCallErr> !UnwindSafe for GuardError<GuardCallErr>
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