Enum embedded_redis::network::ConnectionError
source · pub enum ConnectionError {
TcpSocketError,
TcpConnectionFailed,
AuthenticationError(CommandErrors),
ProtocolSwitchError(CommandErrors),
}
Expand description
Error handling for connection management
Variants§
TcpSocketError
Unable to get a socket from network layer
TcpConnectionFailed
TCP Connect failed
AuthenticationError(CommandErrors)
Authentication failed with the given sub error
ProtocolSwitchError(CommandErrors)
Protocol switch (switch to RESP3) failed with the given sub error
Trait Implementations§
source§impl Debug for ConnectionError
impl Debug for ConnectionError
source§impl PartialEq for ConnectionError
impl PartialEq for ConnectionError
source§fn eq(&self, other: &ConnectionError) -> bool
fn eq(&self, other: &ConnectionError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ConnectionError
impl StructuralPartialEq for ConnectionError
Auto Trait Implementations§
impl RefUnwindSafe for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl UnwindSafe for ConnectionError
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more