Struct NodePlugin
pub struct NodePlugin { /* private fields */ }Expand description
Node plugin for dynamic loading
Implementations§
§impl NodePlugin
impl NodePlugin
pub fn new() -> NodePlugin
pub fn new() -> NodePlugin
Create a new node plugin
Trait Implementations§
§impl Debug for NodePlugin
impl Debug for NodePlugin
§impl Default for NodePlugin
impl Default for NodePlugin
§fn default() -> NodePlugin
fn default() -> NodePlugin
Returns the “default value” for a type. Read more
§impl NervePlugin for NodePlugin
impl NervePlugin for NodePlugin
§fn component_type(&self) -> ComponentType
fn component_type(&self) -> ComponentType
Get the component type this plugin provides
§fn initialize(&self, _context: &PluginContext) -> Result<(), NerveError>
fn initialize(&self, _context: &PluginContext) -> Result<(), NerveError>
Initialize the plugin
§fn shutdown(&self) -> Result<(), NerveError>
fn shutdown(&self) -> Result<(), NerveError>
Shutdown the plugin
§fn is_healthy(&self) -> bool
fn is_healthy(&self) -> bool
Check if plugin is healthy
§fn get_statistics(&self) -> SystemStatistics
fn get_statistics(&self) -> SystemStatistics
Get plugin statistics
§fn id(&self) -> ComponentId
fn id(&self) -> ComponentId
Get plugin identifier
Auto Trait Implementations§
impl Freeze for NodePlugin
impl RefUnwindSafe for NodePlugin
impl Send for NodePlugin
impl Sync for NodePlugin
impl Unpin for NodePlugin
impl UnwindSafe for NodePlugin
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