pub type RestrictFn = Box<dyn Fn() -> Result<(), String> + Send + Sync>;Expand description
Confinement callback: Ok(()) = the current thread is restricted;
Err(reason) = confinement unavailable (loud-degrade, run unconfined).
Aliased Typeยง
pub struct RestrictFn(/* private fields */);