pub enum BackpressureError {
LimitReached {
topic: String,
},
Enqueue(QueueError),
}Expand description
Errors returned by BackpressureEnforcer.
Variants§
LimitReached
The configured per-topic cap was reached; enqueue rejected.
Enqueue(QueueError)
The underlying queue rejected the enqueue.
Trait Implementations§
Source§impl Debug for BackpressureError
impl Debug for BackpressureError
Source§impl Display for BackpressureError
impl Display for BackpressureError
Source§impl Error for BackpressureError
impl Error for BackpressureError
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 BackpressureError
impl RefUnwindSafe for BackpressureError
impl Send for BackpressureError
impl Sync for BackpressureError
impl Unpin for BackpressureError
impl UnsafeUnpin for BackpressureError
impl UnwindSafe for BackpressureError
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