Struct eventstore_tcp::builder::ReadAllEventsBuilder [] [src]

pub struct ReadAllEventsBuilder { /* fields omitted */ }

Builder for ReadAllEvents.

Methods

impl ReadAllEventsBuilder
[src]

Set the read direction (required).

Sets the positions to read from. These are easiest to acquire from previous ReadAllSuccess responses, likely persisted somewhere between reads.

Sets the maximum number of events to read (required). Panics if argument is zero. u8 is used as larger batches should be paged. At the moment maximum buffer requirement even for 255 events is 255*16MiB > 4000MB.

Whether or not the server should resolve links found in the stream to events of other streams. Defaults to true.

Should the server only handle the request if it is the cluster master. Note that while only the master server can accept writes, other cluster members can forward requests to the master.

Defaults to false.

Build a package. Will panic if required values are not set. Values of this builder will be moved into the package.