Trait Discover
trait Discover: Sealed<Change<(), ()>>
A dynamically changing set of related services.
As new services arrive and old services are retired,
Changes are returned which provide unique identifiers
for the services.
See the module documentation for more details.
Associated Types
type Key: TraitBound { trait_: Path { path: "Eq", id: Id(418), args: None }, generic_params: [], modifier: None }A unique identifier for each active service.
An identifier can be re-used once a
Change::Removehas been yielded for its service.type Servicetype ErrorError produced during discovery
Required Methods
fn poll_discover(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Result<Change<<Self as >::Key, <Self as >::Service>, <Self as >::Error>>>Yields the next discovery change set.
Implementors
impl<K, S, E, D> Discover for CallAllUnordered<Svc, S>impl<K, S, E, D> Discover for Dimpl<K, S, E, D> Discover for CallAll<Svc, S>impl<K, S, E, D> Discover for Constant<T, M>impl<K, S, E, D> Discover for PeakEwmaDiscover<D, C>impl<K, S, E, D> Discover for ServiceList<T>impl<K, S, E, D> Discover for PendingRequestsDiscover<D, C>