pub enum ExtractorRejection {
Response(HandleResponse),
Invocation(EndpointHandleInvocationError),
}Expand description
A typed extractor rejection before the authored handler runs.
Variants§
Response(HandleResponse)
Returns one intentional HTTP response.
Invocation(EndpointHandleInvocationError)
Preserves a Domain Error or Runtime Failure from asynchronous extraction.
Trait Implementations§
Source§impl Debug for ExtractorRejection
impl Debug for ExtractorRejection
Source§impl From<EndpointHandleInvocationError> for ExtractorRejection
impl From<EndpointHandleInvocationError> for ExtractorRejection
Source§fn from(error: EndpointHandleInvocationError) -> Self
fn from(error: EndpointHandleInvocationError) -> Self
Converts to this type from the input type.
Source§impl From<HandleResponse> for ExtractorRejection
impl From<HandleResponse> for ExtractorRejection
Source§fn from(response: HandleResponse) -> Self
fn from(response: HandleResponse) -> Self
Converts to this type from the input type.
Source§impl From<ResponseBuildError> for ExtractorRejection
impl From<ResponseBuildError> for ExtractorRejection
Source§fn from(error: ResponseBuildError) -> Self
fn from(error: ResponseBuildError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ExtractorRejection
impl RefUnwindSafe for ExtractorRejection
impl Send for ExtractorRejection
impl Sync for ExtractorRejection
impl Unpin for ExtractorRejection
impl UnsafeUnpin for ExtractorRejection
impl UnwindSafe for ExtractorRejection
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