pub enum Spawner {
Command,
Custom(Arc<dyn Fn() -> Result<(), Error> + Sync + Send>),
}Expand description
How the client starts the daemon when it is not already running.
The default execs the real kindling binary; tests inject a closure that
starts an in-process daemon so cold-spawn can be exercised without the
(not-yet-built) binary on PATH.
Variants§
Command
Production path: kindling serve --daemonize, detached (not awaited).
The kindling binary is PORT-013; until it exists this path simply
surfaces a clean spawn error, which the connect logic maps to
ClientError::Unavailable.
Custom(Arc<dyn Fn() -> Result<(), Error> + Sync + Send>)
Test/custom path: invoke this closure to start the daemon.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Spawner
impl !UnwindSafe for Spawner
impl Freeze for Spawner
impl Send for Spawner
impl Sync for Spawner
impl Unpin for Spawner
impl UnsafeUnpin for Spawner
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