zng_app_context

Trait ContextLocalKeyProvider

source
pub trait ContextLocalKeyProvider {
    // Required method
    fn context_local_key(&'static self) -> AppLocalId;
}
Expand description

Provides an identifying key for a context local value.

Implemented by all ContextLocal<T> already, only implement this for context local thin wrappers.

Required Methods§

source

fn context_local_key(&'static self) -> AppLocalId

Gets the key.

Implementors§