Skip to main content

ConfigurationManager

Trait ConfigurationManager 

Source
pub trait ConfigurationManager: Send + Sync {
    // Required methods
    fn apply_config<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        changes: &'life1 [ConfigChange],
    ) -> Pin<Box<dyn Future<Output = ActuatorResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn revert_config<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        changes: &'life1 [ConfigChange],
    ) -> Pin<Box<dyn Future<Output = ActuatorResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn create_snapshot<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = ActuatorResult<ConfigurationSnapshot>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn restore_snapshot<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        snapshot_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = ActuatorResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_config<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ActuatorResult<HashMap<String, Value>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn validate_config<'life0, 'life1, 'async_trait>(
        &'life0 self,
        changes: &'life1 [ConfigChange],
    ) -> Pin<Box<dyn Future<Output = ActuatorResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Trait for configuration management

Required Methods§

Source

fn apply_config<'life0, 'life1, 'async_trait>( &'life0 mut self, changes: &'life1 [ConfigChange], ) -> Pin<Box<dyn Future<Output = ActuatorResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Apply configuration changes

Source

fn revert_config<'life0, 'life1, 'async_trait>( &'life0 mut self, changes: &'life1 [ConfigChange], ) -> Pin<Box<dyn Future<Output = ActuatorResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Revert configuration changes

Source

fn create_snapshot<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = ActuatorResult<ConfigurationSnapshot>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Create configuration snapshot

Source

fn restore_snapshot<'life0, 'life1, 'async_trait>( &'life0 mut self, snapshot_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = ActuatorResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Restore from snapshot

Source

fn get_config<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ActuatorResult<HashMap<String, Value>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get current configuration

Source

fn validate_config<'life0, 'life1, 'async_trait>( &'life0 self, changes: &'life1 [ConfigChange], ) -> Pin<Box<dyn Future<Output = ActuatorResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Validate configuration

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§