Struct NodeManager
pub struct NodeManager { /* private fields */ }Expand description
Node management component implementation
Implementations§
§impl NodeManager
impl NodeManager
pub fn new() -> NodeManager
pub fn new() -> NodeManager
Create a new node manager
Trait Implementations§
§impl Debug for NodeManager
impl Debug for NodeManager
§impl NerveComponent for NodeManager
impl NerveComponent for NodeManager
§fn id(&self) -> &ComponentId
fn id(&self) -> &ComponentId
Get component identifier
§fn component_type(&self) -> ComponentType
fn component_type(&self) -> ComponentType
Get component type
§fn is_healthy(&self) -> bool
fn is_healthy(&self) -> bool
Check if component is healthy
§fn get_statistics(&self) -> SystemStatistics
fn get_statistics(&self) -> SystemStatistics
Get component statistics
§fn reset_statistics(&mut self)
fn reset_statistics(&mut self)
Reset component statistics
§fn shutdown(&mut self) -> Result<(), NerveError>
fn shutdown(&mut self) -> Result<(), NerveError>
Shutdown the component
§impl NodeComponent for NodeManager
impl NodeComponent for NodeManager
§fn create_registry(&self) -> Result<Box<dyn NodeRegistry>, NerveError>
fn create_registry(&self) -> Result<Box<dyn NodeRegistry>, NerveError>
Create a node registry
§fn node_count(&self) -> usize
fn node_count(&self) -> usize
Get total node count
§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
§fn node_health_summary(&self) -> NodeHealthSummary
fn node_health_summary(&self) -> NodeHealthSummary
Get node health summary
Auto Trait Implementations§
impl Freeze for NodeManager
impl RefUnwindSafe for NodeManager
impl Send for NodeManager
impl Sync for NodeManager
impl Unpin for NodeManager
impl UnwindSafe for NodeManager
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