pub enum EnqueueWithHandleResult {
Enqueued(TaskHandle),
Rejected(EnqueueRejectReason),
Closed,
}Expand description
Result of enqueue_with_handle.
Variants§
Enqueued(TaskHandle)
Task was accepted and assigned a cancel handle.
Rejected(EnqueueRejectReason)
Task was rejected by backpressure policy.
Closed
Scheduler is closed.
Trait Implementations§
Source§impl Clone for EnqueueWithHandleResult
impl Clone for EnqueueWithHandleResult
Source§fn clone(&self) -> EnqueueWithHandleResult
fn clone(&self) -> EnqueueWithHandleResult
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 moreAuto Trait Implementations§
impl Freeze for EnqueueWithHandleResult
impl RefUnwindSafe for EnqueueWithHandleResult
impl Send for EnqueueWithHandleResult
impl Sync for EnqueueWithHandleResult
impl Unpin for EnqueueWithHandleResult
impl UnwindSafe for EnqueueWithHandleResult
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