[][src]Struct eventstore::types::Settings

pub struct Settings {
    pub heartbeat_delay: Duration,
    pub heartbeat_timeout: Duration,
    pub operation_timeout: Duration,
    pub operation_retry: Retry,
    pub connection_retry: Retry,
    pub default_user: Option<Credentials>,
    pub connection_name: Option<String>,
    pub operation_check_period: Duration,
}

Global connection settings.

Fields

heartbeat_delay: Duration

Maximum delay of inactivity before the client sends a heartbeat request.

heartbeat_timeout: Duration

Maximum delay the server has to issue a heartbeat response.

operation_timeout: Duration

Delay in which an operation will be retried if no response arrived.

operation_retry: Retry

Retry strategy when an operation has timeout.

connection_retry: Retry

Retry strategy when failing to connect.

default_user: Option<Credentials>

'Credentials' to use if other Credentials are not explicitly supplied when issuing commands.

connection_name: Option<String>

Default connection name.

operation_check_period: Duration

The period used to check pending command. Those checks include if the the connection has timeout or if the command was issued with a different connection.

Trait Implementations

impl Clone for Settings[src]

impl Debug for Settings[src]

impl Default for Settings[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]