This commit is contained in:
nora 2022-09-15 22:26:51 +02:00
parent 28b397587e
commit 3400568387
2 changed files with 5 additions and 5 deletions

View file

@ -12,7 +12,7 @@ pub trait Discover {
impl<K, S, E, D: ?Sized> Discover for D
where
D: TryStream<Ok = Change<K, S>, Error = E>,
D: TryStream<Ok = (K, S), Error = E>,
K: Eq,
{
type Key = K;
@ -20,8 +20,6 @@ where
type Error = E;
}
pub struct Change<K, V>(K, V);
pub trait Service<Request> {
type Response;
type Error;
@ -34,3 +32,4 @@ pub trait MakeService<Target, Request> {
type Service: Service<Request, Response = Self::Response, Error = Self::Error>;
type Future;
}