Trait cocaine::Resolve
[−]
[src]
pub trait Resolve { type Future: Future<Item = ResolveInfo, Error = Error>; fn resolve(&mut 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
Required Methods
fn resolve(&mut self, name: &str) -> Self::Future
Resolves a service name into the network endpoints.
Implementors
impl Resolve for FixedResolver
impl Resolve for Resolver