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§
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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,
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".