Module discover
Service discovery
This module provides the Change enum, which indicates the arrival or departure of a service
from a collection of similar services. Most implementations should use the Discover trait
in their bounds to indicate that they can handle services coming and going. Discover itself
is primarily a convenience wrapper around TryStream<Ok = Change>.
Every discovered service is assigned an identifier that is distinct among the currently active
services. If that service later goes away, a Change::Remove is yielded with that service's
identifier. From that point forward, the identifier may be re-used.
Examples
use ;
use ;
async
Enums
- Change A change in the service set.
Traits
- Discover A dynamically changing set of related services.