pub enum BatchedQueueError {
ChannelFull,
Disconnected,
Timeout(Duration),
CapacityExceeded {
max_capacity: usize,
},
InvalidBatchSize(usize),
SendError(String),
ReceiveError(String),
}Expand description
Error type for a batched queue.
Variants§
ChannelFull
Disconnected
Timeout(Duration)
CapacityExceeded
InvalidBatchSize(usize)
SendError(String)
ReceiveError(String)
Implementations§
Trait Implementations§
Source§impl Clone for BatchedQueueError
impl Clone for BatchedQueueError
Source§fn clone(&self) -> BatchedQueueError
fn clone(&self) -> BatchedQueueError
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 moreSource§impl Debug for BatchedQueueError
impl Debug for BatchedQueueError
Source§impl Display for BatchedQueueError
impl Display for BatchedQueueError
Source§impl Error for BatchedQueueError
impl Error for BatchedQueueError
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()
Auto Trait Implementations§
impl Freeze for BatchedQueueError
impl RefUnwindSafe for BatchedQueueError
impl Send for BatchedQueueError
impl Sync for BatchedQueueError
impl Unpin for BatchedQueueError
impl UnwindSafe for BatchedQueueError
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