Skip to main content

Guard

Type Alias Guard 

Source
pub type Guard = Rc<dyn Fn(&mut dyn FnMut())>;
Expand description

What Target::guarded runs each callback through: it is handed the callback as a thunk and decides whether, and in which scope, to run it.

Aliased Typeยง

pub struct Guard { /* private fields */ }