pub enum EnqueueResult {
Enqueued,
Rejected(EnqueueRejectReason),
Closed,
}Expand description
Result of an enqueue operation.
Variants§
Enqueued
Task was accepted.
Rejected(EnqueueRejectReason)
Task was rejected by backpressure policy.
Closed
Scheduler is closed.
Trait Implementations§
Source§impl Clone for EnqueueResult
impl Clone for EnqueueResult
Source§fn clone(&self) -> EnqueueResult
fn clone(&self) -> EnqueueResult
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 EnqueueResult
impl RefUnwindSafe for EnqueueResult
impl Send for EnqueueResult
impl Sync for EnqueueResult
impl Unpin for EnqueueResult
impl UnwindSafe for EnqueueResult
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