Skip to main content

TickClosureBoth

Trait TickClosureBoth 

Source
pub trait TickClosureBoth: TickClosureSync + TickClosureAsync { }
Expand description

A tick closure that supports both the sync and the async runners. Implemented automatically for every type implementing both TickClosureSync and TickClosureAsync; see TickClosure for the hierarchy.

This is what concrete generated graphs are: Dfir<impl TickClosureBoth<Metrics = ..>>.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§