Skip to main content

ConfigApi

Trait ConfigApi 

Source
pub trait ConfigApi: Send + Sync {
    // Required methods
    fn get_config<'life0, 'life1, 'async_trait>(
        &'life0 self,
        selector: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<ConfigDocument>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_full_config<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<ConfigDocument>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn set_config<'life0, 'life1, 'async_trait>(
        &'life0 self,
        directive: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<ConfigMutationResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn delete_config<'life0, 'life1, 'async_trait>(
        &'life0 self,
        directive: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<ConfigMutationResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn config_help<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        subsystem: Option<&'life1 str>,
        key: Option<&'life2 str>,
        env_only: bool,
    ) -> Pin<Box<dyn Future<Output = Result<ConfigHelp>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn config_history<'life0, 'async_trait>(
        &'life0 self,
        count: usize,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<ConfigHistoryEntry>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn restore_config<'life0, 'life1, 'async_trait>(
        &'life0 self,
        restore_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn import_config<'life0, 'life1, 'async_trait>(
        &'life0 self,
        document: &'life1 ConfigDocument,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_module_switches<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<ModuleSwitches>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn set_module_switches<'life0, 'life1, 'async_trait>(
        &'life0 self,
        switches: &'life1 ModuleSwitches,
    ) -> Pin<Box<dyn Future<Output = Result<ModuleSwitches>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

RustFS Admin API configuration operations.

Required Methods§

Source

fn get_config<'life0, 'life1, 'async_trait>( &'life0 self, selector: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<ConfigDocument>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_full_config<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<ConfigDocument>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn set_config<'life0, 'life1, 'async_trait>( &'life0 self, directive: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<ConfigMutationResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn delete_config<'life0, 'life1, 'async_trait>( &'life0 self, directive: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<ConfigMutationResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn config_help<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, subsystem: Option<&'life1 str>, key: Option<&'life2 str>, env_only: bool, ) -> Pin<Box<dyn Future<Output = Result<ConfigHelp>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn config_history<'life0, 'async_trait>( &'life0 self, count: usize, ) -> Pin<Box<dyn Future<Output = Result<Vec<ConfigHistoryEntry>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn restore_config<'life0, 'life1, 'async_trait>( &'life0 self, restore_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn import_config<'life0, 'life1, 'async_trait>( &'life0 self, document: &'life1 ConfigDocument, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_module_switches<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<ModuleSwitches>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn set_module_switches<'life0, 'life1, 'async_trait>( &'life0 self, switches: &'life1 ModuleSwitches, ) -> Pin<Box<dyn Future<Output = Result<ModuleSwitches>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§