Skip to main content

lock_plugin

Function lock_plugin 

Source
pub fn lock_plugin<P>(plugin: &Mutex<P>) -> MutexGuard<'_, P>
Expand description

Lock the mediation lock, forgiving poison. A poisoned lock means a panic already escaped somewhere and was reported by the wrapper’s panic guard; refusing every later block would turn one bad block into permanent silence, and the plugin’s state is no more suspect than after any other caught panic.