Trait PluginThreadComponent

Source
pub trait PluginThreadComponent: NerveComponent {
    // Required methods
    fn thread_count(&self) -> usize;
    fn max_threads(&self) -> usize;
    fn thread_utilization(&self) -> f64;
}
Expand description

Simplified thread component interface for plugin system

Required Methods§

Source

fn thread_count(&self) -> usize

Get current thread count

Source

fn max_threads(&self) -> usize

Get maximum allowed threads

Source

fn thread_utilization(&self) -> f64

Get thread utilization percentage

Implementors§