Struct SimpleNodeRegistry
pub struct SimpleNodeRegistry { /* private fields */ }Expand description
Simple node registry implementation
Trait Implementations§
§impl Debug for SimpleNodeRegistry
impl Debug for SimpleNodeRegistry
§impl NodeRegistry for SimpleNodeRegistry
impl NodeRegistry for SimpleNodeRegistry
§fn register_node(&mut self, node_info: NodeInfo) -> Result<(), NerveError>
fn register_node(&mut self, node_info: NodeInfo) -> Result<(), NerveError>
Register a node
§fn unregister_node(&mut self, node_id: u64) -> Result<(), NerveError>
fn unregister_node(&mut self, node_id: u64) -> Result<(), NerveError>
Unregister a node
§fn get_all_nodes(&self) -> Vec<NodeInfo>
fn get_all_nodes(&self) -> Vec<NodeInfo>
Get all nodes
§fn get_nodes_by_type(&self, node_type: NodeType) -> Vec<NodeInfo>
fn get_nodes_by_type(&self, node_type: NodeType) -> Vec<NodeInfo>
Get nodes by type
§fn node_count(&self) -> usize
fn node_count(&self) -> usize
Get node count
§fn statistics(&self) -> NodeStatistics
fn statistics(&self) -> NodeStatistics
Get node statistics
Auto Trait Implementations§
impl Freeze for SimpleNodeRegistry
impl RefUnwindSafe for SimpleNodeRegistry
impl Send for SimpleNodeRegistry
impl Sync for SimpleNodeRegistry
impl Unpin for SimpleNodeRegistry
impl UnwindSafe for SimpleNodeRegistry
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