pub enum IngestionError {
Backpressure,
Sampled,
Unrouted,
ShuttingDown,
Serialization(Error),
}Expand description
Errors that can occur during event ingestion.
Variants§
Backpressure
Ring buffer is full and backpressure policy rejected the event.
Sampled
Event was dropped due to sampling/decimation policy.
Unrouted
Hashed shard id is not in the routing table (e.g. a concurrent
scale-down removed it, or the shard is still provisioning).
Previously collapsed into Backpressure, which made callers
apply the wrong remediation (back-off-and-retry on a routing
miss is futile until the topology stabilizes). Distinct from
Backpressure so callers can distinguish “buffer full” from
“no destination”.
ShuttingDown
The event bus has been shut down.
Serialization(Error)
Serialization failed. Wraps the underlying serde_json::Error so
callers can read the category, line, and column via source().
Trait Implementations§
Source§impl Debug for IngestionError
impl Debug for IngestionError
Source§impl Display for IngestionError
impl Display for IngestionError
Source§impl Error for IngestionError
impl Error for IngestionError
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 IngestionError
impl !RefUnwindSafe for IngestionError
impl Send for IngestionError
impl Sync for IngestionError
impl Unpin for IngestionError
impl UnsafeUnpin for IngestionError
impl !UnwindSafe for IngestionError
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