Trait reool::connection_factory::ConnectionFactory [−][src]
A factory for connections that always creates connections to the same node.
The factory also performs pings on a node by using a fresh connection on each ping.
Associated Types
type Connection: Poolable
[src]
Required methods
fn create_connection(&self) -> BoxFuture<'_, Result<Self::Connection, Error>>
[src]
Create a new connection
fn connecting_to(&self) -> &str
[src]
The node this factory will connect to when a new connection is requested.
Provided methods
fn ping(&self, _timeout: Instant) -> BoxFuture<'_, Ping>
[src]
Ping the Redis node
This will create a new connection and try a ping on it.
If a factory does not support ping
it will simply fail with ()
.