pub trait Guard: Send + Sync + 'static { fn check(&self, _: &Context) -> bool; }
A guard for Context
fn check(&self, _: &Context) -> bool
Checks the Context
impl Guard for Box<dyn Guard>
fn check(&self, cx: &Context) -> bool
impl<F> Guard for F where F: Send + Sync + 'static + Fn(&Context) -> bool,