pub struct NodeRegistry { /* private fields */ }Expand description
Registry for managing cluster nodes
Implementations§
Source§impl NodeRegistry
impl NodeRegistry
Sourcepub fn new() -> NodeRegistry
pub fn new() -> NodeRegistry
Create a new node registry
Sourcepub fn unregister(&self, id: NodeId) -> Result<(), PolarisError>
pub fn unregister(&self, id: NodeId) -> Result<(), PolarisError>
Unregister a node
Trait Implementations§
Source§impl Clone for NodeRegistry
impl Clone for NodeRegistry
Source§fn clone(&self) -> NodeRegistry
fn clone(&self) -> NodeRegistry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeRegistry
impl Debug for NodeRegistry
Source§impl Default for NodeRegistry
impl Default for NodeRegistry
Source§fn default() -> NodeRegistry
fn default() -> NodeRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NodeRegistry
impl !RefUnwindSafe for NodeRegistry
impl Send for NodeRegistry
impl Sync for NodeRegistry
impl Unpin for NodeRegistry
impl !UnwindSafe for NodeRegistry
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