Struct eventstore::Handle[][src]

pub struct Handle { /* fields omitted */ }

A Handle to a running client. Handle basically exposes the same functions of Client minus shutdown.

Methods

impl Handle
[src]

Sends events to a given stream.

Sets the metadata for a stream.

Reads a single event from a given stream.

Gets the metadata of a stream.

Starts a transaction on a given stream.

Reads events from a given stream. The reading can be done forward and backward.

Reads events for the system stream $all. The reading can be done forward and backward.

Deletes a given stream. By default, the server performs a soft delete, More information can be found on the [Deleting streams and events] page.

Subscribes to a given stream. You will get notified of each new events written to this stream.

Subscribes to a given stream. This kind of subscription specifies a starting point (by default, the beginning of a stream). For a regular stream, that starting point will be an event number. For the system stream $all, it will be a position in the transaction file (see subscribe_to_all_from). This subscription will fetch every event until the end of the stream, then will dispatch subsequently written events.

For example, if a starting point of 50 is specified when a stream has 100 events in it, the subscriber can expect to see events 51 through 100, and then any events subsequenttly written events until such time as the subscription is dropped or closed.

Like subscribe_to_stream_from but specific to system $all stream.

Creates a persistent subscription group on a stream.

Persistent subscriptions are special kind of subscription where the server remembers the state of the subscription. This allows for many different modes of operations compared to a regular or catchup subscription where the client holds the subscription state.

Updates a persistent subscription group on a stream.

Deletes a persistent subscription group on a stream.

Connects to a persistent subscription group on a stream.

Auto Trait Implementations

impl Send for Handle

impl Sync for Handle