Skip to main content

IdleGateHandler

Type Alias IdleGateHandler 

Source
pub type IdleGateHandler = Box<dyn FnMut() -> Vec<Effect> + Send + 'static>;
Expand description

A gate’s body. Runs on the editor actor thread when the gate’s deadline elapses; returns the Effects the host applies.

FnMut for the same reason a tick callback is: the canonical body reads state the subsystem stashed when it armed.

Aliased Type§

pub struct IdleGateHandler(/* private fields */);