Skip to main content

ModalHook

Type Alias ModalHook 

Source
pub type ModalHook = Arc<dyn Fn(bool) + Send + Sync>;
Expand description

Called with true just before a blocking native call and false just after it (also when the call failed or panicked). Must be cheap and must not block.

Aliased Typeยง

pub struct ModalHook { /* private fields */ }