#[non_exhaustive]pub enum SpawnStrategy {
Embedded,
External,
AttachOnly,
}Expand description
How the runtime obtains a running daemon when the socket is not answering.
Note that all strategies attach to an already-running daemon on the configured socket — the variant only decides what happens when a spawn is actually required.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Embedded
Start an in-process kindling-server on a tokio task
(requires the embedded-daemon feature). The blessed anvil path: one
binary, no kindling on PATH. This is the default.
External
Exec the real kindling binary on PATH (requires the external-spawn
feature). For hosts that ship the CLI separately.
AttachOnly
Never spawn. Attach to an already-running daemon or fail with
ClientError::Unavailable.
For tests and hosts that manage the daemon externally.
Trait Implementations§
Source§impl Clone for SpawnStrategy
impl Clone for SpawnStrategy
Source§fn clone(&self) -> SpawnStrategy
fn clone(&self) -> SpawnStrategy
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 SpawnStrategy
impl Debug for SpawnStrategy
Source§impl Default for SpawnStrategy
impl Default for SpawnStrategy
Source§fn default() -> SpawnStrategy
fn default() -> SpawnStrategy
Returns the “default value” for a type. Read more
impl Eq for SpawnStrategy
Source§impl PartialEq for SpawnStrategy
impl PartialEq for SpawnStrategy
Source§fn eq(&self, other: &SpawnStrategy) -> bool
fn eq(&self, other: &SpawnStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SpawnStrategy
Auto Trait Implementations§
impl Freeze for SpawnStrategy
impl RefUnwindSafe for SpawnStrategy
impl Send for SpawnStrategy
impl Sync for SpawnStrategy
impl Unpin for SpawnStrategy
impl UnsafeUnpin for SpawnStrategy
impl UnwindSafe for SpawnStrategy
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.