mirror of
https://github.com/Noratrieb/101844-repro.git
synced 2026-01-14 14:25:02 +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!();
|
||||
|
||||
// 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;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue