Trait cocaine::Resolve [] [src]

pub trait Resolve {
    type Future: Future<Item = ResolveInfo<SocketAddr>, Error = Error>;
    fn resolve(&self, name: &str) -> Self::Future;
}

Cloud name resolution for services.

Used before service connection establishing to determine where to connect, i.e where a service with the given name is located. For common usage the most reasonable choice is a Resolver implementation that uses Locator for name resolution.

Associated Types

Future type that is returned during resolving.

Required Methods

Resolves a service name into the network endpoints.

Implementors