[][src]Struct eventstore::commands::ConnectToPersistentSubscription

pub struct ConnectToPersistentSubscription<'a> { /* fields omitted */ }

A subscription model where the server remembers the state of the consumption of a stream. This allows for many different modes of operations compared to a regular subscription where the client hols the subscription state.

Methods

impl<'a> ConnectToPersistentSubscription<'a>[src]

pub fn credentials(
    self,
    creds: Credentials
) -> ConnectToPersistentSubscription<'a>
[src]

Performs the command with the given credentials.

pub fn batch_size(self, batch_size: u16) -> ConnectToPersistentSubscription<'a>[src]

The buffer size to use for the persistent subscription.

pub fn execute(self) -> Subscription[src]

Sends the persistent subscription connection request to the server asynchronously even if the subscription is available right away.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T