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::Remove has been yielded for its service.

type Service

The type of Service yielded by this Discover.

type Error

Error 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