I have this declaration:
impl<T: JobContext, R> TaskProcessor<T, R>
where
R: hyper::service::Service<hyper::client::connect::dns::Name> + Clone + Send + Sync + 'static,
R::Response: std::iter::Iterator<Item = std::net::SocketAddr>,
R::Future: Send,
R::Error: std::error::Error + Send + Sync,
{
}
I want to move the condition after where
into its own trait so I could write something like:
impl<T: JobContext, R: DnsResolve> TaskProcessor<T, R> { }
What is the best way to do this?