pub trait Discover {
type Key: Hash + Eq;
type Service;
type Error;
// Required method
fn poll_discover(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<Change<Self::Key, Self::Service>, Self::Error>>;
}
Expand description
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.