pub enum Fallback<S> {
Route(DynService),
Handler(DynHandler<S>),
}Variants§
Route(DynService)
Handler(DynHandler<S>)
Implementations§
source§impl<S> Fallback<S>
impl<S> Fallback<S>
pub fn from_handler<H, T>(h: H) -> Fallback<S>
pub fn from_service<Srv>(srv: Srv) -> Fallback<S>where
Srv: Service<HttpContext, Incoming, Response = Response, Error = Infallible> + Clone + Send + Sync + 'static,
Trait Implementations§
Auto Trait Implementations§
impl<S> !RefUnwindSafe for Fallback<S>
impl<S> Send for Fallback<S>
impl<S> Sync for Fallback<S>
impl<S> Unpin for Fallback<S>
impl<S> !UnwindSafe for Fallback<S>
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