mirror of
https://github.com/Noratrieb/101844-repro.git
synced 2026-01-16 15:15:00 +01:00
more
This commit is contained in:
parent
c5f61214b6
commit
ca3a6684cb
2 changed files with 2 additions and 7 deletions
|
|
@ -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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue