pub enum Instruction<'a, T: ICommandInfo> {
Wait(Notified<'a>),
Stop,
Execute(T::Request, T::Command),
}Expand description
An instruction sent to a Worker.
Variants§
Auto Trait Implementations§
impl<'a, T> !Freeze for Instruction<'a, T>
impl<'a, T> !RefUnwindSafe for Instruction<'a, T>
impl<'a, T> Send for Instruction<'a, T>
impl<'a, T> Sync for Instruction<'a, T>
impl<'a, T> !Unpin for Instruction<'a, T>
impl<'a, T> !UnsafeUnpin for Instruction<'a, T>
impl<'a, T> !UnwindSafe for Instruction<'a, T>
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