pub struct Fallback<S1, S2>where
S2: Clone,{ /* private fields */ }
Expand description
Provides fallback processing on a second service if the first service returned an error.
Implementations§
Trait Implementations§
Source§impl<S1, S2, Request> Service<Request> for Fallback<S1, S2>
impl<S1, S2, Request> Service<Request> for Fallback<S1, S2>
Auto Trait Implementations§
impl<S1, S2> Freeze for Fallback<S1, S2>
impl<S1, S2> RefUnwindSafe for Fallback<S1, S2>where
S1: RefUnwindSafe,
S2: RefUnwindSafe,
impl<S1, S2> Send for Fallback<S1, S2>
impl<S1, S2> Sync for Fallback<S1, S2>
impl<S1, S2> Unpin for Fallback<S1, S2>
impl<S1, S2> UnwindSafe for Fallback<S1, S2>where
S1: UnwindSafe,
S2: 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