pub struct JobsPlugin { /* private fields */ }Implementations§
Source§impl JobsPlugin
impl JobsPlugin
pub fn new(config: JobsConfig) -> Self
Trait Implementations§
Source§impl ServerPlugin for JobsPlugin
impl ServerPlugin for JobsPlugin
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 JobsPlugin
impl RefUnwindSafe for JobsPlugin
impl Send for JobsPlugin
impl Sync for JobsPlugin
impl Unpin for JobsPlugin
impl UnsafeUnpin for JobsPlugin
impl UnwindSafe for JobsPlugin
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