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.

Closes the connection, joining any background tasks that were spawned to help manage it.

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

Performs the conversion.

Performs the conversion.

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.