Struct cocaine::service::locator::Locator[][src]

pub struct Locator { /* fields omitted */ }

Locator service wrapper.

Methods

impl Locator
[src]

Constructs a new Locator service wrapper using the specified service object.

Resolves a service with the specified name, returning its endpoints, version and methods.

Examples

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

let mut core = Core::new().unwrap();
let locator = Locator::new(Service::new("locator", &core.handle()));

let future = locator.resolve("node");

let info = core.run(future).unwrap();

Subscribes for routing groups changes using an unique identifier.

Trait Implementations

impl Clone for Locator
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Locator
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Locator

impl Sync for Locator