pub struct Action<R, TH, B>{ /* private fields */ }Expand description
Action leaf node that bridges the synchronous tick interface and the
executor.
Action uses the user-provided Behavior to create an ActionTask,
registers it through RegisterTask, and reports progress through
TickStatus on later ticks.
See the runtime execution chapter in the book for a more detailed explanation: https://beetry.pages.dev/runtime/execution.html.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<R, TH, B> Freeze for Action<R, TH, B>
impl<R, TH, B> RefUnwindSafe for Action<R, TH, B>
impl<R, TH, B> Send for Action<R, TH, B>
impl<R, TH, B> Sync for Action<R, TH, B>
impl<R, TH, B> Unpin for Action<R, TH, B>
impl<R, TH, B> UnsafeUnpin for Action<R, TH, B>where
B: UnsafeUnpin,
TH: UnsafeUnpin,
impl<R, TH, B> UnwindSafe for Action<R, TH, B>
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