[−][src]Trait tower_discover::Discover
Provide a uniform set of services able to satisfy a request.
This set of services may be updated over time. On each change to the set, a
new NewServiceSet
is yielded by Discover
.
See crate documentation for more details.
Associated Types
Loading content...Required methods
fn poll(&mut self) -> Poll<Change<Self::Key, Self::Service>, Self::Error>
Yields the next discovery change set.
Implementors
impl<S, K, Svc> Discover for ServiceStream<S> where
K: Hash + Eq,
S: Stream<Item = Change<K, Svc>>,
[src]
K: Hash + Eq,
S: Stream<Item = Change<K, Svc>>,
type Key = K
type Service = Svc
type Error = S::Error
fn poll(&mut self) -> Poll<Change<Self::Key, Self::Service>, Self::Error>
[src]
impl<T, U> Discover for ServiceList<T> where
T: IntoIterator<Item = U>,
[src]
T: IntoIterator<Item = U>,