pub struct LiveNodeHandle { /* private fields */ }Expand description
A thread-safe handle to control a LiveNode from other threads.
This allows stopping and querying the node’s state without requiring the node itself to be Send + Sync.
Implementations§
Source§impl LiveNodeHandle
impl LiveNodeHandle
Sourcepub fn should_stop(&self) -> bool
pub fn should_stop(&self) -> bool
Returns whether the node should stop.
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
Returns whether the node is currently running.
Sourcepub fn metrics_snapshot(&self) -> RunnerMetricsSnapshot
pub fn metrics_snapshot(&self) -> RunnerMetricsSnapshot
Returns a by-value snapshot of LiveNode::run dispatch metrics after startup.
Trait Implementations§
Source§impl Clone for LiveNodeHandle
impl Clone for LiveNodeHandle
Source§fn clone(&self) -> LiveNodeHandle
fn clone(&self) -> LiveNodeHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LiveNodeHandle
impl Debug for LiveNodeHandle
Auto Trait Implementations§
impl Freeze for LiveNodeHandle
impl RefUnwindSafe for LiveNodeHandle
impl Send for LiveNodeHandle
impl Sync for LiveNodeHandle
impl Unpin for LiveNodeHandle
impl UnsafeUnpin for LiveNodeHandle
impl UnwindSafe for LiveNodeHandle
Blanket Implementations§
impl<T> Allocation for T
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