usestd::panic::PanicInfo;/// A hook called when the wasm client panics.
pubtraitOnClientError{/// Called on panics.
fncall(&self, err:&PanicInfo);}impl<F> OnClientError forFwhere
F: Fn(&PanicInfo) + Send + Sync + 'static,
{fncall(&self, err:&PanicInfo){(self)(err)}}