Skip to main content

TickClosureAsync

Trait TickClosureAsync 

Source
pub trait TickClosureAsync: TickClosure { }
Expand description

A tick closure that can run a tick as a future. See TickClosure for the hierarchy.

The &mut Context parameter is owned by Dfir and lent to the closure each tick, avoiding shared-ownership overhead for the context.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§