pub struct OnError;Expand description
The default fallback policy.
Falls back whenever the first service returns an error.
Trait Implementations§
impl Copy for OnError
impl Eq for OnError
Source§impl<Response> FallbackPolicy<Response> for OnError
impl<Response> FallbackPolicy<Response> for OnError
Source§fn should_fallback(&self, result: &Result<Response, BoxedError>) -> bool
fn should_fallback(&self, result: &Result<Response, BoxedError>) -> bool
Returns
true if the fallback service should handle this request.impl StructuralPartialEq for OnError
Auto Trait Implementations§
impl Freeze for OnError
impl RefUnwindSafe for OnError
impl Send for OnError
impl Sync for OnError
impl Unpin for OnError
impl UnsafeUnpin for OnError
impl UnwindSafe for OnError
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