Struct strymon_coordinator::handler::CoordinatorRef [] [src]

pub struct CoordinatorRef { /* fields omitted */ }

A cloneable reference to the coordinator instance, tracking any state created by this handle.

The initial handle is obtained by creating a new coordinator instance with Coordinator::new.

Note that cloning this handle will not clone any tracked state.

Methods

impl CoordinatorRef
[src]

[src]

Handles a new job submission request.

The returned future resolves with the allocated job identifier once all processes have registered themselves at the coordinator (or when an error occurs).

[src]

Handles a new job termination request.

The returned future resolves once all executors have acknowledged the request, or the first executor has reported an error.

[src]

Registers a new executor instance. Returns the newly assigned identifier for this executor.

[src]

Marks job worker group (e.g. a process hosting some worker threads) as ready.

The returned future resolves with the job identifier for the newly spawned job once all other worker groups have registered themselves, or if an error occured.

[src]

Creates a new publication in the catalog. Returns the created topic.

[src]

Removes a publication from the catalog.

[src]

Handles a new subscription request.

The returned future resolves either immediately for non-blocking lookups, or once a matching topic is created by a later publication.

[src]

Removes a subscription from the catalog.

[src]

Performs a non-blocking, non-subscribing topic lookup.

[src]

Forwards an encoded query to the catalog.

The catalog which will decode and execute the query and respond to it immediately. Might fail if the request could not be decoded.

Trait Implementations

impl Clone for CoordinatorRef
[src]

Performs a (shallow) clone to obtain a new handle to the coordinator.

This will not clone any state tracked by the self.

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Drop for CoordinatorRef
[src]

Removes any state associated with the client owning this handle.

[src]

Executes the destructor for this type. Read more