[][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]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Settings[src]

impl Debug for Settings[src]

Auto Trait Implementations

impl Send for Settings

impl Sync for Settings

Blanket Implementations

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

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

type Owned = T

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