Skip to main content

Guard

Type Alias Guard 

Source
pub type Guard = Arc<dyn Fn(&GuardCall<'_>) -> Verdict + Send + Sync>;
Expand description

A guard on a frame: can_enter or can_leave, evaluated by the owner of the stack.

Aliased Typeยง

pub struct Guard { /* private fields */ }