Struct eventstore::commands::ReadStreamMetadata [−][src]
pub struct ReadStreamMetadata<'a> { /* fields omitted */ }
Reads a stream metadata command.
Methods
impl<'a> ReadStreamMetadata<'a>
[src]
impl<'a> ReadStreamMetadata<'a>
pub fn require_master(self, value: bool) -> ReadStreamMetadata<'a>
[src]
pub fn require_master(self, value: bool) -> ReadStreamMetadata<'a>
Asks the server receiving the command to be the master of the cluster
in order to perform the write. Default: false
.
pub fn credentials(self, value: Credentials) -> ReadStreamMetadata<'a>
[src]
pub fn credentials(self, value: Credentials) -> ReadStreamMetadata<'a>
Performs the command with the given credentials.
pub fn execute(
self
) -> impl Future<Item = StreamMetadataResult, Error = OperationError>
[src]
pub fn execute(
self
) -> impl Future<Item = StreamMetadataResult, Error = OperationError>
Sends asynchronously the read command to the server.
Auto Trait Implementations
impl<'a> Send for ReadStreamMetadata<'a>
impl<'a> Send for ReadStreamMetadata<'a>
impl<'a> Sync for ReadStreamMetadata<'a>
impl<'a> Sync for ReadStreamMetadata<'a>