pub struct LiveNodeHandle { /* private fields */ }
Expand description
A thread-safe handle to control a LiveNode
from other threads.
This allows starting, 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.
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 · 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 UnwindSafe for LiveNodeHandle
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more