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

pub struct Locator { /* fields omitted */ }

Locator service wrapper.

Methods

impl Locator
[src]

[src]

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

[src]

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();

[src]

Subscribes for routing groups changes using an unique identifier.

Trait Implementations

impl Clone for Locator
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Locator
[src]

[src]

Formats the value using the given formatter.