Struct eventstore::commands::ReadEvent [−][src]
pub struct ReadEvent<'a> { /* fields omitted */ }
Command that reads an event from a given stream.
Methods
impl<'a> ReadEvent<'a>
[src]
impl<'a> ReadEvent<'a>
pub fn resolve_link_tos(self, resolve_link_tos: bool) -> ReadEvent<'a>
[src]
pub fn resolve_link_tos(self, resolve_link_tos: bool) -> ReadEvent<'a>
When using projections, you can have links placed into another stream.
If you set true
, the server will resolve those links and will return
the event that the link points to. Default: false
.
pub fn require_master(self, require_master: bool) -> ReadEvent<'a>
[src]
pub fn require_master(self, require_master: bool) -> ReadEvent<'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) -> ReadEvent<'a>
[src]
pub fn credentials(self, value: Credentials) -> ReadEvent<'a>
Performs the command with the given credentials.
pub fn execute(
self
) -> impl Future<Item = ReadEventStatus<ReadEventResult>, Error = OperationError>
[src]
pub fn execute(
self
) -> impl Future<Item = ReadEventStatus<ReadEventResult>, Error = OperationError>
Sends asynchronously the read command to the server.