pub enum NodeRunMode {
Owned,
Hosted,
}Expand description
Determines which lifecycle responsibilities the node owns while running.
Both modes run the same event loop. The mode only decides whether the node installs process signal handlers, which a host application must own for itself.
Variants§
Owned
The node owns the thread it runs on and installs its own signal handlers.
Hosted
A host event loop drives the node, and the host owns signal handling and shutdown.
Implementations§
Source§impl NodeRunMode
impl NodeRunMode
Sourcepub const fn owns_signals(self) -> bool
pub const fn owns_signals(self) -> bool
Returns whether the node installs process signal handlers in this mode.
Trait Implementations§
Source§impl Clone for NodeRunMode
impl Clone for NodeRunMode
Source§fn clone(&self) -> NodeRunMode
fn clone(&self) -> NodeRunMode
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 moreimpl Copy for NodeRunMode
Source§impl Debug for NodeRunMode
impl Debug for NodeRunMode
Source§impl Default for NodeRunMode
impl Default for NodeRunMode
Source§fn default() -> NodeRunMode
fn default() -> NodeRunMode
Returns the “default value” for a type. Read more
impl Eq for NodeRunMode
Source§impl PartialEq for NodeRunMode
impl PartialEq for NodeRunMode
impl StructuralPartialEq for NodeRunMode
Auto Trait Implementations§
impl Freeze for NodeRunMode
impl RefUnwindSafe for NodeRunMode
impl Send for NodeRunMode
impl Sync for NodeRunMode
impl Unpin for NodeRunMode
impl UnsafeUnpin for NodeRunMode
impl UnwindSafe for NodeRunMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.