Trait ServiceExt

Source
pub trait ServiceExt<Request>: Service<Request> {
    // Provided methods
    fn boxed(self) -> BoxService<Request, Self::QueryResponse>
       where Self: Sized + Send + Sync + 'static,
             Self::OnQueryFuture: Send + 'static,
             Self::OnMessageFuture: Send + 'static { ... }
    fn boxed_clone(self) -> BoxCloneService<Request, Self::QueryResponse>
       where Self: Clone + Sized + Send + Sync + 'static,
             Self::OnQueryFuture: Send + 'static,
             Self::OnMessageFuture: Send + 'static { ... }
}

Provided Methods§

Source

fn boxed(self) -> BoxService<Request, Self::QueryResponse>
where Self: Sized + Send + Sync + 'static, Self::OnQueryFuture: Send + 'static, Self::OnMessageFuture: Send + 'static,

Source

fn boxed_clone(self) -> BoxCloneService<Request, Self::QueryResponse>
where Self: Clone + Sized + Send + Sync + 'static, Self::OnQueryFuture: Send + 'static, Self::OnMessageFuture: Send + 'static,

Implementors§

Source§

impl<T, Request> ServiceExt<Request> for T
where T: Service<Request> + ?Sized,