pub enum SubscriberError {
Connection(RedisError),
Payload(RedisError),
DecodeMessage(Error),
Subscribe(RedisError),
DecodeSourceId(Error),
}
Expand description
Error types returned by the eventually::EventSubscriber
implementation
on the EventSubscriber
type.
Variants§
Connection(RedisError)
Error returned when failed to establish a PubSub
connection
with Redis.
Payload(RedisError)
Error returned when failed to get the payload from a SUBSCRIBE
event.
DecodeMessage(Error)
Error returned when failed to decode the payload received from JSON.
Subscribe(RedisError)
Error returned when failed to execute the SUBSCRIBE
command
to receive notification on the stream topic.
DecodeSourceId(Error)
Error returned when attempting to decode the source id from the notification payload.
Trait Implementations§
Source§impl Debug for SubscriberError
impl Debug for SubscriberError
Source§impl Display for SubscriberError
impl Display for SubscriberError
Source§impl Error for SubscriberError
impl Error for SubscriberError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SubscriberError
impl !RefUnwindSafe for SubscriberError
impl Send for SubscriberError
impl Sync for SubscriberError
impl Unpin for SubscriberError
impl !UnwindSafe for SubscriberError
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