struct ModernProviderWrapper {
provider_ptr: *mut c_void,
metadata: Value,
file_path: PathBuf,
}
Expand description
Wrapper for modern providers loaded via FFI
Fields§
§provider_ptr: *mut c_void
§metadata: Value
§file_path: PathBuf
Implementations§
Trait Implementations§
Source§impl Provider for ModernProviderWrapper
impl Provider for ModernProviderWrapper
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
impl Send for ModernProviderWrapper
impl Sync for ModernProviderWrapper
Auto Trait Implementations§
impl Freeze for ModernProviderWrapper
impl RefUnwindSafe for ModernProviderWrapper
impl Unpin for ModernProviderWrapper
impl UnwindSafe for ModernProviderWrapper
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