Struct ThreadPlugin
pub struct ThreadPlugin { /* private fields */ }Expand description
Thread plugin for dynamic loading
Implementations§
§impl ThreadPlugin
impl ThreadPlugin
pub fn new(max_threads: usize) -> ThreadPlugin
pub fn new(max_threads: usize) -> ThreadPlugin
Create a new thread plugin
Trait Implementations§
§impl Debug for ThreadPlugin
impl Debug for ThreadPlugin
§impl NervePlugin for ThreadPlugin
impl NervePlugin for ThreadPlugin
§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 ThreadPlugin
impl RefUnwindSafe for ThreadPlugin
impl Send for ThreadPlugin
impl Sync for ThreadPlugin
impl Unpin for ThreadPlugin
impl UnwindSafe for ThreadPlugin
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