mirror of
https://github.com/Noratrieb/101844-repro.git
synced 2026-01-16 07:05:02 +01:00
aaa
This commit is contained in:
parent
28b397587e
commit
3400568387
2 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue