Struct eventstore::commands::WriteStreamMetadata [−][src]
pub struct WriteStreamMetadata<'a> { /* fields omitted */ }
Write stream metadata command.
Methods
impl<'a> WriteStreamMetadata<'a>
[src]
impl<'a> WriteStreamMetadata<'a>
pub fn require_master(self, value: bool) -> WriteStreamMetadata<'a>
[src]
pub fn require_master(self, value: bool) -> WriteStreamMetadata<'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, value: ExpectedVersion) -> WriteStreamMetadata<'a>
[src]
pub fn expected_version(self, value: ExpectedVersion) -> WriteStreamMetadata<'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) -> WriteStreamMetadata<'a>
[src]
pub fn credentials(self, value: Credentials) -> WriteStreamMetadata<'a>
Performs the command with the given credentials.
pub fn execute(
self
) -> impl Future<Item = WriteResult, Error = OperationError>
[src]
pub fn execute(
self
) -> impl Future<Item = WriteResult, Error = OperationError>
Sends asynchronously the write command to the server.
Auto Trait Implementations
impl<'a> Send for WriteStreamMetadata<'a>
impl<'a> Send for WriteStreamMetadata<'a>
impl<'a> Sync for WriteStreamMetadata<'a>
impl<'a> Sync for WriteStreamMetadata<'a>