pub struct PluginProxy { /* private fields */ }Implementations§
Source§impl PluginProxy
impl PluginProxy
pub fn msg_handler(&self) -> MsgHandler
pub fn request_handler(&self) -> RequestHandler
Sourcepub fn load_plugin_info(binary_path: PathBuf) -> Result<PluginInfo, String>
pub fn load_plugin_info(binary_path: PathBuf) -> Result<PluginInfo, String>
This function will create a temporary plugin process to fetch plugin information.
pub fn start_process( runtime: RuntimeHandle, plugin_state: PluginMeta, plugin_info: PluginInfo, service_handler: HostServiceHandler, ) -> Result<PluginProxy, String>
Trait Implementations§
Source§impl Drop for PluginProxy
impl Drop for PluginProxy
Source§impl Plugin for PluginProxy
impl Plugin for PluginProxy
fn get_name(&self) -> String
fn get_info(&self) -> PluginInfo
fn get_meta(&self) -> PluginMeta
fn on_new_otx(&self, _otx: OpenTransaction)
fn on_new_intervel(&self, _interval: u64)
fn on_commit_otx(&self, _otxs: Vec<H256>)
Auto Trait Implementations§
impl Freeze for PluginProxy
impl RefUnwindSafe for PluginProxy
impl Send for PluginProxy
impl Sync for PluginProxy
impl Unpin for PluginProxy
impl UnwindSafe for PluginProxy
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