This commit is contained in:
nora 2022-09-15 22:16:53 +02:00
parent c5f61214b6
commit ca3a6684cb
2 changed files with 2 additions and 7 deletions

View file

@ -74,6 +74,7 @@ impl Builder {
{
let d: PoolDiscoverer<MS, Target, Request> = todo!();
// THE CRITICAL STATEMENT
let x = Balance::new(Box::pin(d));
todo!()
@ -116,5 +117,4 @@ impl<Request, Svc: Service<Request>> Service<Request> for DropNotifyService<Svc>
type Response = Svc::Response;
type Future = Svc::Future;
type Error = Svc::Error;
}

View file

@ -40,14 +40,9 @@ where
pub struct Change<K, V>(K, V);
pub trait Service<Request> {
/// Responses given by the service.
type Response;
/// Errors produced by the service.
type Error;
/// The future response value.
type Future: Future<Output = Result<Self::Response, Self::Error>>;
type Future;
}
pub trait MakeService<Target, Request> {