#[non_exhaustive]pub enum RouteErrorPhase {
BeforeResponse,
DuringStream,
}Expand description
When a terminal failure occurred relative to response delivery.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BeforeResponse
The route failed before returning a response to its caller.
DuringStream
A previously returned streaming response failed while it was consumed.
Implementations§
Trait Implementations§
Source§impl Clone for RouteErrorPhase
impl Clone for RouteErrorPhase
Source§fn clone(&self) -> RouteErrorPhase
fn clone(&self) -> RouteErrorPhase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RouteErrorPhase
Source§impl Debug for RouteErrorPhase
impl Debug for RouteErrorPhase
Source§impl<'_derivative_strum> From<&'_derivative_strum RouteErrorPhase> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum RouteErrorPhase> for &'static str
Source§fn from(x: &'_derivative_strum RouteErrorPhase) -> &'static str
fn from(x: &'_derivative_strum RouteErrorPhase) -> &'static str
Converts to this type from the input type.
Source§impl From<RouteErrorPhase> for &'static str
impl From<RouteErrorPhase> for &'static str
Source§fn from(x: RouteErrorPhase) -> &'static str
fn from(x: RouteErrorPhase) -> &'static str
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RouteErrorPhase
impl RefUnwindSafe for RouteErrorPhase
impl Send for RouteErrorPhase
impl Sync for RouteErrorPhase
impl Unpin for RouteErrorPhase
impl UnsafeUnpin for RouteErrorPhase
impl UnwindSafe for RouteErrorPhase
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