Function context_rs::with_ref

source ·
pub async fn with_ref<T: 'static + ?Sized, F: for<'c> FnOnce(&'c T) -> R, R>(
    f: F
) -> Option<R>
Expand description

Get a value from the current context. Only works when paired with provide_ref