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

View file

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