pub trait SimpleAction {
// Required method
fn act(self: Pin<&Self>);
}
Expand description
A simple action that just does something with its data.
This is similar to a Future, except there is no concept of it completing. It manages its associated data however it wishes, and is responsible for re-queuing as needed.
Note, specifically, that the Act does not take a mutable reference. This is because the Work below uses an Arc, so this data can be shared.