pub struct RuntimeBootstrap {
pub config: RuntimeConfig,
pub channels: ChannelRegistry,
pub tools: HostToolRegistry,
pub executor: Handle,
}Expand description
Only construction path for super::DefaultTransactionRuntime.
§Host Tokio pattern
executor must be a multi-thread Tokio Handle. CLI samples may use
#[tokio::main] + Handle::current(). Embedded hosts (e.g. Tauri) should
start a dedicated multi-thread runtime at process setup and pass
runtime.handle().clone() here for the process lifetime.
Fields§
§config: RuntimeConfigLimits and feature flags.
channels: ChannelRegistryImmutable Channel bindings (factories not yet realized).
tools: HostToolRegistryImmutable host tool shell (empty allowed).
executor: HandleTokio multi-thread handle used for owned tasks.
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeBootstrap
impl !UnwindSafe for RuntimeBootstrap
impl Freeze for RuntimeBootstrap
impl Send for RuntimeBootstrap
impl Sync for RuntimeBootstrap
impl Unpin for RuntimeBootstrap
impl UnsafeUnpin for RuntimeBootstrap
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