Function provide_context

Source
pub fn provide_context<T: 'static>(value: T)
Expand description

Provide a context value in this scope.

§Panics

This panics if a context value of the same type exists already in this scope. Note that it is allowed to have context values with the same type in different scopes.