[−][src]Struct eventstore::ConnectionBuilder
Helps constructing a connection to the server.
Fields
settings: Settings
Implementations
impl ConnectionBuilder
[src]
pub fn heartbeat_delay(self, delay: Duration) -> Self
[src]
Maximum delay of inactivity before the client sends a heartbeat request.
pub fn heartbeat_timeout(self, timeout: Duration) -> Self
[src]
Maximum delay the server has to issue a heartbeat response.
pub fn operation_timeout(self, timeout: Duration) -> Self
[src]
Delay in which an operation will be retried if no response arrived.
pub fn operation_retry(self, strategy: Retry) -> Self
[src]
Retry strategy when an operation has timeout.
pub fn connection_retry(self, strategy: Retry) -> Self
[src]
Retry strategy when failing to connect.
pub fn with_default_user(self, user: Credentials) -> Self
[src]
'Credentials' to use if other Credentials
are not explicitly supplied
when issuing commands.
pub fn with_connection_name<S>(self, name: S) -> Self where
S: AsRef<str>,
[src]
S: AsRef<str>,
Default connection name.
pub fn operation_check_period(self, period: Duration) -> Self
[src]
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.
pub fn connection_timeout(self, period: Duration) -> Self
[src]
Maximum delay to create a successful connection to a node.
pub fn socket_connection_timeout(self, period: Duration) -> Self
[src]
Maximum delay to physically connect to a node. This property differs from
connection_timeout
by referencing the delay to have a connected socket to a node, whereas
connection_timeout
refers to the whole connection, validation included.
pub fn enable_secure_connection(self, config: SecureSettings) -> Self
[src]
Enable secure connection with the server/cluster.
pub async fn single_node_connection(self, addr: SocketAddr) -> Connection
[src]
Creates a connection to a single EventStore node. The connection will start right away.
pub async fn cluster_nodes_through_gossip_connection(
self,
setts: GossipSeedClusterSettings
) -> Connection
[src]
self,
setts: GossipSeedClusterSettings
) -> Connection
Creates a connection to a cluster of EventStore nodes. The connection will
start right away. Those GossipSeed
should be the external HTTP endpoint
of a node. The standard external HTTP endpoint is running on 2113
.
Auto Trait Implementations
impl !RefUnwindSafe for ConnectionBuilder
impl Send for ConnectionBuilder
impl Sync for ConnectionBuilder
impl Unpin for ConnectionBuilder
impl !UnwindSafe for ConnectionBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
fn into_request(self) -> Request<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,