ProviderNamespace

Trait ProviderNamespace 

Source
pub trait ProviderNamespace {
Show 13 methods // Required methods fn name(&self) -> &str; fn base_dir(&self) -> &PathBuf; fn capabilities(&self) -> &ProviderCapabilities; fn provider_name(&self) -> &str; fn nodes<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = HashMap<String, DynNode>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_node_available_args<'life0, 'async_trait>( &'life0 self, options: (String, Option<String>), ) -> Pin<Box<dyn Future<Output = Result<String, ProviderError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn spawn_node<'life0, 'life1, 'async_trait>( &'life0 self, options: &'life1 SpawnNodeOptions, ) -> Pin<Box<dyn Future<Output = Result<DynNode, ProviderError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn spawn_node_from_json<'life0, 'life1, 'async_trait>( &'life0 self, json_value: &'life1 Value, ) -> Pin<Box<dyn Future<Output = Result<DynNode, ProviderError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn generate_files<'life0, 'async_trait>( &'life0 self, options: GenerateFilesOptions, ) -> Pin<Box<dyn Future<Output = Result<(), ProviderError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn destroy<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<(), ProviderError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn static_setup<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<(), ProviderError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; // Provided methods fn detach<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait { ... } fn is_detached<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait { ... }
}

Required Methods§

Source

fn name(&self) -> &str

Source

fn base_dir(&self) -> &PathBuf

Source

fn capabilities(&self) -> &ProviderCapabilities

Source

fn provider_name(&self) -> &str

Source

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

Source

fn get_node_available_args<'life0, 'async_trait>( &'life0 self, options: (String, Option<String>), ) -> Pin<Box<dyn Future<Output = Result<String, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn spawn_node<'life0, 'life1, 'async_trait>( &'life0 self, options: &'life1 SpawnNodeOptions, ) -> Pin<Box<dyn Future<Output = Result<DynNode, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn spawn_node_from_json<'life0, 'life1, 'async_trait>( &'life0 self, json_value: &'life1 Value, ) -> Pin<Box<dyn Future<Output = Result<DynNode, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

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

Source

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

Source

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

Provided Methods§

Source

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

Source

fn is_detached<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Implementors§