Trait tower::discover::Discover [−][src]
pub trait Discover: Sealed<Change<(), ()>> { type Key: Eq; type Service; type Error; fn poll_discover(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Change<Self::Key, Self::Service>, Self::Error>>>; }
This is supported on crate feature
discover only.Expand description
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: Eq[src]
type Key: Eq[src]A unique identifier for each active service.
An identifier can be re-used once a Change::Remove has been yielded for its service.