Struct rercon::ReConnection [−][src]
pub struct ReConnection { /* fields omitted */ }
Expand description
Drop-in replacement wrapper of Connection
which intercepts all IO errors
returned by Connection::exec
to start the reconnection thread, and will opt to return BusyReconnecting
instead.
For further docs, refer to Connection
, as it shares the same API.
Implementations
This function behaves identical to Connection::open
.
This function behaves identical to Connection::exec
unless Err([IO](enum.Error.html#variant.IO))
is returned,
in which case it will start reconnecting and return BusyReconnecting
until the connection has been re-established.