Async counterpart of HostedRpcDep. Implement this when the owner-side
method dispatcher needs to .await (e.g. controlling subprocesses, holding
tokio::sync locks, calling other async APIs).
User-facing trait that opts a dependency value into the Cloneable
sharing strategy. The parent calls to_wire once
and ships the bytes to each worker via IPC. Each worker calls
from_wire to reconstruct a local value.
User-facing trait that opts a dependency value into the Hosted
sharing strategy. Like CloneableDep, but the owner instance lives in
the parent test runner process for the entire suite. The parent runs
the constructor once per Hosted dep and keeps the value alive until every
worker has finished — useful for singleton services like an in-process
TCP listener, a Docker container, an env-based test environment, or any
long-running runtime that must not be duplicated across worker processes.
User-facing trait that opts a dependency value into the HostedRpc sharing
strategy. Like HostedDep, the owner lives in the
parent test runner process for the entire suite; unlike Hosted,
workers do NOT see the owner type — they see a separate Stub type
that calls back into the parent over the existing IPC socket through a
small generated method-dispatch table.
Spawn a future on the tokio runtime with test context propagation.
If the spawned task panics and the test uses DetachedPanicPolicy::FailTest (default),
the panic will be reported as a test failure after the test body completes.
Spawn a thread with test context propagation.
If the spawned thread panics and the test uses DetachedPanicPolicy::FailTest (default),
the panic will be reported as a test failure after the test body completes.