struct LegacyCpiAdapter {
name: String,
file_path: String,
}
Expand description
Adapter for legacy CPI plugins
Fields§
§name: String
§file_path: String
Implementations§
Trait Implementations§
Source§impl Provider for LegacyCpiAdapter
impl Provider for LegacyCpiAdapter
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 LegacyCpiAdapter
impl RefUnwindSafe for LegacyCpiAdapter
impl Send for LegacyCpiAdapter
impl Sync for LegacyCpiAdapter
impl Unpin for LegacyCpiAdapter
impl UnwindSafe for LegacyCpiAdapter
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