Struct eventstore::commands::TransactionStart [−][src]
pub struct TransactionStart<'a> { /* fields omitted */ }
Command that starts a transaction on a stream.
Methods
impl<'a> TransactionStart<'a>
[src]
impl<'a> TransactionStart<'a>
pub fn require_master(self, require_master: bool) -> TransactionStart<'a>
[src]
pub fn require_master(self, require_master: bool) -> TransactionStart<'a>
Asks the server receiving the command to be the master of the cluster
in order to perform the write. Default: false
.
pub fn expected_version(self, version: ExpectedVersion) -> TransactionStart<'a>
[src]
pub fn expected_version(self, version: ExpectedVersion) -> TransactionStart<'a>
Asks the server to check that the stream receiving the event is at
the given expected version. Default: types::ExpectedVersion::Any
.
pub fn credentials(self, value: Credentials) -> TransactionStart<'a>
[src]
pub fn credentials(self, value: Credentials) -> TransactionStart<'a>
Performs the command with the given credentials.
pub fn execute(
self
) -> impl Future<Item = Transaction, Error = OperationError>
[src]
pub fn execute(
self
) -> impl Future<Item = Transaction, Error = OperationError>
Sends asnychronously the start transaction command to the server.
Auto Trait Implementations
impl<'a> Send for TransactionStart<'a>
impl<'a> Send for TransactionStart<'a>
impl<'a> Sync for TransactionStart<'a>
impl<'a> Sync for TransactionStart<'a>