pub enum RequestError<C> {
Terminate(C),
Respond(PartialErrorResponse),
}
Variants§
Terminate(C)
Respond(PartialErrorResponse)
Trait Implementations§
Source§impl<C> From<PartialErrorResponse> for RequestError<C>
impl<C> From<PartialErrorResponse> for RequestError<C>
Source§fn from(error: PartialErrorResponse) -> Self
fn from(error: PartialErrorResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<C> Freeze for RequestError<C>where
C: Freeze,
impl<C> RefUnwindSafe for RequestError<C>where
C: RefUnwindSafe,
impl<C> Send for RequestError<C>where
C: Send,
impl<C> Sync for RequestError<C>where
C: Sync,
impl<C> Unpin for RequestError<C>where
C: Unpin,
impl<C> UnwindSafe for RequestError<C>where
C: UnwindSafe,
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