pub trait Provider {
// Required methods
fn name(&self) -> &str;
fn capabilities(&self) -> &ProviderCapabilities;
fn namespaces<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = HashMap<String, DynNamespace>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_namespace<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<DynNamespace, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_namespace_with_base_dir<'life0, 'life1, 'async_trait>(
&'life0 self,
base_dir: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<DynNamespace, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn create_namespace_from_json<'life0, 'life1, 'async_trait>(
&'life0 self,
json_value: &'life1 Value,
) -> Pin<Box<dyn Future<Output = Result<DynNamespace, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Required Methods§
fn name(&self) -> &str
fn capabilities(&self) -> &ProviderCapabilities
fn namespaces<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = HashMap<String, DynNamespace>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_namespace<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<DynNamespace, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_namespace_with_base_dir<'life0, 'life1, 'async_trait>(
&'life0 self,
base_dir: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<DynNamespace, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_namespace_from_json<'life0, 'life1, 'async_trait>(
&'life0 self,
json_value: &'life1 Value,
) -> Pin<Box<dyn Future<Output = Result<DynNamespace, ProviderError>> + 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".