pub struct ProcessPlugin { /* private fields */ }Implementations§
Source§impl ProcessPlugin
impl ProcessPlugin
pub fn new(config: ProcessConfig) -> Self
Trait Implementations§
Source§impl ServerPlugin for ProcessPlugin
impl ServerPlugin for ProcessPlugin
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Stable plugin name (same semantics as
Plugin::name).Source§fn run<'life0, 'async_trait>(
&'life0 self,
ctx: PluginContext,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn run<'life0, 'async_trait>(
&'life0 self,
ctx: PluginContext,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Run the plugin’s main loop. Return
Ok(()) on shutdown.Source§fn rpc_methods(&self) -> Vec<RpcMethodDef>
fn rpc_methods(&self) -> Vec<RpcMethodDef>
Optional RPC method advertisements (default empty).
Auto Trait Implementations§
impl Freeze for ProcessPlugin
impl RefUnwindSafe for ProcessPlugin
impl Send for ProcessPlugin
impl Sync for ProcessPlugin
impl Unpin for ProcessPlugin
impl UnsafeUnpin for ProcessPlugin
impl UnwindSafe for ProcessPlugin
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