call_trace_tls

Function thread_register_callback

Source
pub fn thread_register_callback<F, G>(f: F)
where F: FnOnce(Option<Callback>) -> G, G: Fn(&mut Context, Event) + 'static,
Expand description

Registers a callback in the thread-local context. This is a shortcut for accessing the Context via thread_access_with().