Struct EventBatchError
pub struct EventBatchError {
pub requested: usize,
pub remaining_capacity: usize,
}Expand description
An entire batch was rejected because it exceeded the available event slots.
EventQueue::try_send_batch leaves the input vector and queued events
unchanged on this error, allowing a retry after enough events are consumed.
Its usage example shows both the error fields and a successful retry.
Fields§
§requested: usizeNumber of events in the rejected batch; none were enqueued.
remaining_capacity: usizeNumber of free queue slots at the time of rejection.
Trait Implementations§
§impl Clone for EventBatchError
impl Clone for EventBatchError
§fn clone(&self) -> EventBatchError
fn clone(&self) -> EventBatchError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for EventBatchError
impl Debug for EventBatchError
§impl Display for EventBatchError
impl Display for EventBatchError
§impl Error for EventBatchError
impl Error for EventBatchError
1.30.0 · 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()
§impl PartialEq for EventBatchError
impl PartialEq for EventBatchError
impl Copy for EventBatchError
impl Eq for EventBatchError
impl StructuralPartialEq for EventBatchError
Auto Trait Implementations§
impl Freeze for EventBatchError
impl RefUnwindSafe for EventBatchError
impl Send for EventBatchError
impl Sync for EventBatchError
impl Unpin for EventBatchError
impl UnwindSafe for EventBatchError
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