pub struct Rejection { /* private fields */ }Expand description
An HTTP-level error value returned from route handlers.
Returning Err(rejection) from an onconnect closure sends the corresponding
HTTP status code with an empty body to the client.
The most common source is forbidden() (produces 403 Forbidden).
Implementations§
Auto Trait Implementations§
impl Freeze for Rejection
impl RefUnwindSafe for Rejection
impl Send for Rejection
impl Sync for Rejection
impl Unpin for Rejection
impl UnsafeUnpin for Rejection
impl UnwindSafe for Rejection
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