pub enum NodeState<Service: Service> {
Alive(AliveNodeView<Service>),
Dead(DeadNodeView<Service>),
Inaccessible(NodeId),
Undefined(NodeId),
}Expand description
The current state of the Node. If the Node is dead all of its resources can be removed
with DeadNodeView::remove_stale_resources().
Variants§
Alive(AliveNodeView<Service>)
The Nodes process is still alive.
Dead(DeadNodeView<Service>)
The Nodes process died without cleaning up the Nodes resources. Another process has
now the responsibility to cleanup all the stale resources.
Inaccessible(NodeId)
The process does not have sufficient permissions to identify the Node as dead or alive.
Undefined(NodeId)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<Service> Freeze for NodeState<Service>
impl<Service> RefUnwindSafe for NodeState<Service>where
Service: RefUnwindSafe,
impl<Service> Send for NodeState<Service>where
Service: Send,
impl<Service> Sync for NodeState<Service>where
Service: Sync,
impl<Service> Unpin for NodeState<Service>where
Service: Unpin,
impl<Service> UnwindSafe for NodeState<Service>where
Service: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)