pub struct NodeTcpConfigBuilder<'a, A> { /* private fields */ }
Expand description

Builder structure that helps to configure TCP connection for node.

Implementations§

NodeTcpConfigBuilder constructor function. It receivesthread::spawn(move || {

  • node socket address as a string
  • authenticator

Sets the maximum number of connections managed by the pool. Defaults to 10.

Sets the minimum idle connection count maintained by the pool. If set, the pool will try to maintain at least this many idle connections at all times, while respecting the value of max_size. Defaults to None (equivalent to the value of max_size).

Sets the maximum lifetime of connections in the pool. If set, connections will be closed after existing for at most 30 seconds beyond this duration. If a connection reaches its maximum lifetime while checked out it will be closed when it is returned to the pool. Defaults to 30 minutes.

Sets the idle timeout used by the pool. If set, connections will be closed after sitting idle for at most 30 seconds beyond this duration. Defaults to 10 minutes.

Sets the connection timeout used by the pool. Defaults to 30 seconds.

Sets new authenticator.

Finalizes building process and returns NodeSslConfig

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.