Struct nakadion::NakadiClient [] [src]

pub struct NakadiClient<C: NakadiConnector> { /* fields omitted */ }

The client to consume events from Nakadi

Methods

impl<C: NakadiConnector> NakadiClient<C>
[src]

Creates a new instance. The returned JoinHandle can be used to synchronize with the underlying worker. The underlying worker will be stopped once the client is dropped.

Configure the client from environment variables.

The SubscriptionId is provided manually. Useful if you want to consume multiple subscriptions but want to use the same settings everywhere else.

Configure the client solely from environment variables. Including the SubscriptionId.

Get access to the underlying NakadiConnector.

Trait Implementations

impl<C: NakadiConnector> Worker for NakadiClient<C>
[src]

Returns true if the underlying NakadiWorker is still running.

Stop the underlying NakadiWorker.

Return the SubscriptionId this NakadiClient is listening to.