Skip to main content

GenericConfigurationProvider

Trait GenericConfigurationProvider 

Source
pub trait GenericConfigurationProvider<Config>
where Config: Clone,
{ // Required methods fn current(&self) -> &Config; fn current_mut(&mut self) -> &mut Config; fn commit(&mut self, reload: bool) -> Result<(), ConfigurationError>; fn reload(&mut self) -> Result<(), ConfigurationError>; }

Required Methods§

Source

fn current(&self) -> &Config

Source

fn current_mut(&mut self) -> &mut Config

Source

fn commit(&mut self, reload: bool) -> Result<(), ConfigurationError>

Source

fn reload(&mut self) -> Result<(), ConfigurationError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<Config, Marshal> GenericConfigurationProvider<Config> for ConfigurationProvider<Config, Marshal>
where Config: Default + Clone, Marshal: ConfigurationMarshal<Config>,