pub struct NodeComponentAdapter { /* private fields */ }Expand description
Adapter that converts NodeManager to PluginNodeComponent
Implementations§
Source§impl NodeComponentAdapter
impl NodeComponentAdapter
pub fn new(component: Arc<NodeManager>) -> Self
Trait Implementations§
Source§impl NerveComponent for NodeComponentAdapter
impl NerveComponent for NodeComponentAdapter
Source§fn id(&self) -> &ComponentId
fn id(&self) -> &ComponentId
Get component identifier
Source§fn component_type(&self) -> ComponentType
fn component_type(&self) -> ComponentType
Get component type
Source§fn is_healthy(&self) -> bool
fn is_healthy(&self) -> bool
Check if component is healthy
Source§fn get_statistics(&self) -> SystemStatistics
fn get_statistics(&self) -> SystemStatistics
Get component statistics
Source§fn reset_statistics(&mut self)
fn reset_statistics(&mut self)
Reset component statistics
Source§fn shutdown(&mut self) -> NerveResult<()>
fn shutdown(&mut self) -> NerveResult<()>
Shutdown the component
Source§impl PluginNodeComponent for NodeComponentAdapter
impl PluginNodeComponent for NodeComponentAdapter
Source§fn node_count(&self) -> usize
fn node_count(&self) -> usize
Get total node count
Source§fn node_count_by_type(&self, node_type: NodeType) -> usize
fn node_count_by_type(&self, node_type: NodeType) -> usize
Get node count by type
Source§fn node_health_summary(&self) -> PluginNodeHealthSummary
fn node_health_summary(&self) -> PluginNodeHealthSummary
Get node health summary
Auto Trait Implementations§
impl Freeze for NodeComponentAdapter
impl RefUnwindSafe for NodeComponentAdapter
impl Send for NodeComponentAdapter
impl Sync for NodeComponentAdapter
impl Unpin for NodeComponentAdapter
impl UnwindSafe for NodeComponentAdapter
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