Struct cocaine::Resolver [] [src]

pub struct Resolver { /* fields omitted */ }

A Resolver that uses the Locator for name resolution.

It is cloneable, thread-safe and implements both Send and Sync traits, allowing to share across multiple threads.

Examples

use cocaine::{Core, Resolve, Resolver, Service};
use cocaine::service::Locator;

let mut core = Core::new().unwrap();

let resolver = Resolver::new(Locator::new(Service::new("locator", &core.handle())));

core.run(resolver.resolve("storage")).unwrap();

Methods

impl Resolver
[src]

[src]

Constructs a new Resolver using the specified Locator for name resolution.

Trait Implementations

impl Clone for Resolver
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Resolver
[src]

[src]

Formats the value using the given formatter.

impl Resolve for Resolver
[src]

Future type that is returned during resolving.

[src]

Resolves a service name into the network endpoints.