Struct abscissa::ConfigReader[][src]

pub struct ConfigReader<C: 'static + GlobalConfig>(_);

Wrapper around a RwLockReadGuard for reading global configuration data from global static values defined by the init_config! macro.

Methods

impl<C: GlobalConfig> ConfigReader<C>
[src]

Obtain a read-only handle to the inner configuration from an RwLock. This is intended to be used with a global static configuration defined by the init_config! macro.

Panics if the configuration has not been loaded.

Trait Implementations

impl<C: GlobalConfig> Deref for ConfigReader<C>
[src]

The resulting type after dereferencing.

Important traits for &'a mut R

Dereferences the value.

Auto Trait Implementations

impl<C> !Send for ConfigReader<C>

impl<C> Sync for ConfigReader<C> where
    C: Sync