pub struct DeadNodeView<Service: Service>(/* private fields */);Expand description
All the information and management operations belonging to a dead Node.
Implementations§
Source§impl<Service: Service> DeadNodeView<Service>
impl<Service: Service> DeadNodeView<Service>
Sourcepub fn blocking_remove_stale_resources(
self,
timeout: Duration,
) -> Result<(), NodeCleanupFailure>
pub fn blocking_remove_stale_resources( self, timeout: Duration, ) -> Result<(), NodeCleanupFailure>
Removes all stale resources of a dead Node. If another instance
is already removing the dead Node it waits until the other instance
has cleaned up the dead Node completely. If the other cleanup instance
crashes, it will take over the ownership and continue the cleanup.
If the process does not have the permission to cleanup all resources it
aborts with an error.
If the provided timeout is expired it will return with
NodeCleanupFailure::AnotherInstanceIsCleaningUpTheNode.
Sourcepub fn try_remove_stale_resources(self) -> Result<(), NodeCleanupFailure>
pub fn try_remove_stale_resources(self) -> Result<(), NodeCleanupFailure>
Trait Implementations§
Source§impl<Service: Service> Clone for DeadNodeView<Service>
impl<Service: Service> Clone for DeadNodeView<Service>
Source§impl<Service: Service> NodeView for DeadNodeView<Service>
impl<Service: Service> NodeView for DeadNodeView<Service>
Source§fn id(&self) -> &UniqueNodeId
fn id(&self) -> &UniqueNodeId
Returns the
UniqueNodeId of the Node.Source§fn details(&self) -> &Option<NodeDetails>
fn details(&self) -> &Option<NodeDetails>
Returns the
NodeDetails.Auto Trait Implementations§
impl<Service> Freeze for DeadNodeView<Service>where
AliveNodeView<Service>: Freeze,
impl<Service> RefUnwindSafe for DeadNodeView<Service>where
AliveNodeView<Service>: RefUnwindSafe,
impl<Service> Send for DeadNodeView<Service>where
AliveNodeView<Service>: Send,
impl<Service> Sync for DeadNodeView<Service>where
AliveNodeView<Service>: Sync,
impl<Service> Unpin for DeadNodeView<Service>where
AliveNodeView<Service>: Unpin,
impl<Service> UnsafeUnpin for DeadNodeView<Service>where
AliveNodeView<Service>: UnsafeUnpin,
impl<Service> UnwindSafe for DeadNodeView<Service>where
AliveNodeView<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