pub enum EventError {
Show 17 variants
Connection(String),
JetStream(String),
Publish {
subject: String,
reason: String,
},
Subscribe {
subject: String,
reason: String,
},
Serialization(Error),
NotFound(String),
Config(String),
Stream(String),
Consumer(String),
Ack(String),
Timeout(String),
Provider(String),
SchemaValidation {
event_type: String,
version: u32,
reason: String,
},
SinkDelivery {
sink: String,
reason: String,
},
BrokerRouting(String),
CloudEventConversion(String),
Source(String),
}Expand description
Errors that can occur in the event system
Variants§
Connection(String)
Provider connection failure
JetStream(String)
Provider-specific backend error (JetStream, Redis, etc.)
Publish
Publish failure
Subscribe
Subscribe failure
Serialization(Error)
Serialization/deserialization failure
NotFound(String)
Event not found
Config(String)
Configuration error
Stream(String)
Stream/topic creation or management error
Consumer(String)
Consumer/subscription creation or management error
Ack(String)
Acknowledgement failure
Timeout(String)
Timeout
Provider(String)
Provider not supported or not available
SchemaValidation
Schema validation failure
SinkDelivery
Sink delivery failure
BrokerRouting(String)
Broker routing failure
CloudEventConversion(String)
CloudEvent conversion failure
Source(String)
Event source error
Trait Implementations§
Source§impl Debug for EventError
impl Debug for EventError
Source§impl Display for EventError
impl Display for EventError
Source§impl Error for EventError
impl Error for EventError
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 EventError
impl !RefUnwindSafe for EventError
impl Send for EventError
impl Sync for EventError
impl Unpin for EventError
impl UnsafeUnpin for EventError
impl !UnwindSafe for EventError
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