Struct eventstore::commands::WriteEvents[][src]

pub struct WriteEvents<'a> { /* fields omitted */ }

Command that sends events to a given stream.

Methods

impl<'a> WriteEvents<'a>
[src]

Sets events to write in the command. This function will replace previously added events.

Adds an event to the current list of events to send to the server.

Extends the current set of events to send the the server with the given iterator.

Asks the server receiving the command to be the master of the cluster in order to perform the write. Default: false.

Asks the server to check that the stream receiving the event is at the given expected version. Default: types::ExpectedVersion::Any.

Performs the command with the given credentials.

Sends asynchronously the write command to the server.

Auto Trait Implementations

impl<'a> Send for WriteEvents<'a>

impl<'a> Sync for WriteEvents<'a>