pub enum ProducerMsg<D: Clone> {
Enqueue(Task<D>),
}Expand description
Message sent from user code into the dispatcher so enqueue operations are centralized in a single task.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<D> Freeze for ProducerMsg<D>
impl<D> RefUnwindSafe for ProducerMsg<D>where
Task<D>: RefUnwindSafe,
impl<D> Send for ProducerMsg<D>
impl<D> Sync for ProducerMsg<D>
impl<D> Unpin for ProducerMsg<D>
impl<D> UnsafeUnpin for ProducerMsg<D>where
Task<D>: UnsafeUnpin,
impl<D> UnwindSafe for ProducerMsg<D>where
Task<D>: UnwindSafe,
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