Trait nakadion::worker::Worker [] [src]

pub trait Worker {
    fn is_running(&self) -> bool;
    fn stop(&self);
    fn subscription_id(&self) -> &SubscriptionId;
}

Common fuctionality a worker must provide.

Required Methods

Returns true if the worker is still running.

Stops the worker.

Gets the SubscriptionId the worker is listening to.

Implementors