pub enum DispatchError {
QueueFull,
Closed,
LockPoisoned,
}Expand description
Error returned when a cross-thread task cannot be accepted by UiDispatcher.
Variants§
QueueFull
Bounded queue reached capacity under DispatchBackpressurePolicy::RejectNew.
Closed
Dispatcher has been closed and no longer accepts new tasks.
LockPoisoned
Underlying queue synchronization primitive was poisoned by an external panic.
Trait Implementations§
Source§impl Clone for DispatchError
impl Clone for DispatchError
impl Copy for DispatchError
Source§impl Debug for DispatchError
impl Debug for DispatchError
Source§impl Display for DispatchError
Human-readable formatting for DispatchError.
impl Display for DispatchError
Human-readable formatting for DispatchError.
impl Eq for DispatchError
Source§impl Error for DispatchError
Standard Error implementation for DispatchError.
impl Error for DispatchError
Standard Error implementation for DispatchError.
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 Hash for DispatchError
impl Hash for DispatchError
Source§impl PartialEq for DispatchError
impl PartialEq for DispatchError
impl StructuralPartialEq for DispatchError
Auto Trait Implementations§
impl Forget for DispatchError
impl Freeze for DispatchError
impl Move for DispatchError
impl RefUnwindSafe for DispatchError
impl Send for DispatchError
impl Sync for DispatchError
impl Unpin for DispatchError
impl UnsafeUnpin for DispatchError
impl UnwindSafe for DispatchError
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