Enum embedded_redis::subscription::Error
source · pub enum Error {
CommandError(CommandErrors),
ClockError,
TcpError,
DecodeError,
Timeout,
}
Expand description
Subscription errors
Variants§
CommandError(CommandErrors)
Error while sending SUBSCRIBE or UNSUBSCRIBE command
ClockError
Upstream time error
TcpError
Network error receiving or sending data
DecodeError
Error while decoding a push message. Either Redis sent invalid data or there is a decoder bug.
Timeout
Subscription or Unsubscription was not confirmed by Redis within time limit. Its recommended to close/reconnect the socket to avoid subsequent errors based on invalid state.
Trait Implementations§
source§impl PartialEq for Error
impl PartialEq for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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