pub struct RouterService<S, R, F>where
R: Router,{ /* private fields */ }Implementations§
Trait Implementations§
Source§impl<S: Clone, R, F: Clone> Clone for RouterService<S, R, F>
impl<S: Clone, R, F: Clone> Clone for RouterService<S, R, F>
Source§fn clone(&self) -> RouterService<S, R, F>
fn clone(&self) -> RouterService<S, R, F>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S, R, F> Service<Request<SgBody>> for RouterService<S, R, F>where
R: Router + Send + Sync + 'static,
R::Index: Send + Sync + 'static + Clone,
S: Index<R::Index>,
S::Output: Service<Request<SgBody>, Response = Response<SgBody>, Error = Infallible> + Send + 'static,
F: Service<Request<SgBody>, Response = Response<SgBody>, Error = Infallible> + Send + 'static,
<F as Service<Request<SgBody>>>::Future: Send,
<S::Output as Service<Request<SgBody>>>::Future: Send,
impl<S, R, F> Service<Request<SgBody>> for RouterService<S, R, F>where
R: Router + Send + Sync + 'static,
R::Index: Send + Sync + 'static + Clone,
S: Index<R::Index>,
S::Output: Service<Request<SgBody>, Response = Response<SgBody>, Error = Infallible> + Send + 'static,
F: Service<Request<SgBody>, Response = Response<SgBody>, Error = Infallible> + Send + 'static,
<F as Service<Request<SgBody>>>::Future: Send,
<S::Output as Service<Request<SgBody>>>::Future: Send,
Auto Trait Implementations§
impl<S, R, F> Freeze for RouterService<S, R, F>
impl<S, R, F> RefUnwindSafe for RouterService<S, R, F>
impl<S, R, F> Send for RouterService<S, R, F>
impl<S, R, F> Sync for RouterService<S, R, F>
impl<S, R, F> Unpin for RouterService<S, R, F>
impl<S, R, F> UnwindSafe for RouterService<S, R, F>
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