pub enum DispatchQueueError {
Backpressure {
capacity: usize,
},
Shutdown,
}Expand description
Typed errors emitted by DispatchQueue.
Variants§
Backpressure
Intake was rejected because the queue reached configured capacity.
Shutdown
Operation was rejected because the dispatch queue has been shut down.
Trait Implementations§
Source§impl Clone for DispatchQueueError
impl Clone for DispatchQueueError
Source§fn clone(&self) -> DispatchQueueError
fn clone(&self) -> DispatchQueueError
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 DispatchQueueError
impl Debug for DispatchQueueError
Source§impl Display for DispatchQueueError
impl Display for DispatchQueueError
Source§impl Error for DispatchQueueError
impl Error for DispatchQueueError
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()
Source§impl PartialEq for DispatchQueueError
impl PartialEq for DispatchQueueError
impl Eq for DispatchQueueError
impl StructuralPartialEq for DispatchQueueError
Auto Trait Implementations§
impl Freeze for DispatchQueueError
impl RefUnwindSafe for DispatchQueueError
impl Send for DispatchQueueError
impl Sync for DispatchQueueError
impl Unpin for DispatchQueueError
impl UnsafeUnpin for DispatchQueueError
impl UnwindSafe for DispatchQueueError
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