Skip to main content

TickClosureSync

Trait TickClosureSync 

Source
pub trait TickClosureSync: TickClosure { }
Expand description

A tick closure that can run a tick synchronously. 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 dyn compatible.

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

Implementors§