Function callback

Source
pub fn callback<T, RT>(cb: T) -> WebmachineCallback<RT>
where T: Fn(&mut WebmachineContext, &WebmachineResource) -> RT + Send + Sync + 'static,
Expand description

Wrap a callback in a structure that is safe to call between threads