Enum redis_async::error::ConnectionReason
source · pub enum ConnectionReason {
Connecting,
Connected,
ConnectionFailed,
NotConnected,
}
Expand description
Details of a ConnectionError
Variants§
Connecting
An attempt to use a connection while it is in the “connecting” state, clients should try again
Connected
An attempt was made to reconnect after a connection was established, clients should try again
ConnectionFailed
Connection failed - this can be returned from a call to reconnect, the actual error will be sent to the client at the next call
NotConnected
The connection is not currently connected, the connection will reconnect asynchronously, clients should try again
Trait Implementations§
source§impl Clone for ConnectionReason
impl Clone for ConnectionReason
source§fn clone(&self) -> ConnectionReason
fn clone(&self) -> ConnectionReason
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConnectionReason
impl Debug for ConnectionReason
impl Copy for ConnectionReason
Auto Trait Implementations§
impl Freeze for ConnectionReason
impl RefUnwindSafe for ConnectionReason
impl Send for ConnectionReason
impl Sync for ConnectionReason
impl Unpin for ConnectionReason
impl UnwindSafe for ConnectionReason
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more