struct FeatureAdapter {
name: String,
operations: Vec<String>,
file_path: String,
}
Expand description
Adapter for feature plugins
Fields§
§name: String
§operations: Vec<String>
§file_path: String
Implementations§
Trait Implementations§
Source§impl Provider for FeatureAdapter
impl Provider for FeatureAdapter
Source§fn feature_operations(&self, feature: &str) -> ProviderResult<Vec<String>>
fn feature_operations(&self, feature: &str) -> ProviderResult<Vec<String>>
Get operations for a feature
Source§fn execute_operation(
&self,
feature: &str,
operation: &str,
args: HashMap<String, Value>,
context: &dyn ProviderContext,
) -> ProviderResult<Value>
fn execute_operation( &self, feature: &str, operation: &str, args: HashMap<String, Value>, context: &dyn ProviderContext, ) -> ProviderResult<Value>
Execute an operation
Source§fn initialize(&mut self, context: &dyn ProviderContext) -> ProviderResult<()>
fn initialize(&mut self, context: &dyn ProviderContext) -> ProviderResult<()>
Initialize provider
Source§fn shutdown(&mut self, context: &dyn ProviderContext) -> ProviderResult<()>
fn shutdown(&mut self, context: &dyn ProviderContext) -> ProviderResult<()>
Shutdown provider
Source§fn supports_feature(&self, feature: &str) -> bool
fn supports_feature(&self, feature: &str) -> bool
Check if provider supports a feature
Auto Trait Implementations§
impl Freeze for FeatureAdapter
impl RefUnwindSafe for FeatureAdapter
impl Send for FeatureAdapter
impl Sync for FeatureAdapter
impl Unpin for FeatureAdapter
impl UnwindSafe for FeatureAdapter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more