[][src]Function webmachine_rust::callback

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

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