This commit is contained in:
nora 2022-09-15 22:10:15 +02:00
parent 9a3a68ad02
commit 694ce70ce3
3 changed files with 4 additions and 30 deletions

View file

@ -3,6 +3,8 @@
pub mod balance;
pub mod make;
use std::future::Future;
use futures_core::TryStream;
pub trait Sealed<T> {}
/// Alias for a type-erased error type.
@ -15,11 +17,6 @@ mod load {
}
}
use std::future::Future;
use std::task::Poll;
use futures_core::TryStream;
pub trait Discover {
type Key: Eq;
type Service;
@ -54,6 +51,4 @@ pub trait Service<Request> {
/// The future response value.
type Future: Future<Output = Result<Self::Response, Self::Error>>;
fn poll_ready(&mut self) -> Poll<Result<(), Self::Error>>;
}