pub enum RuntimeBuildMode {
StandaloneEphemeral,
SessionOwned(SessionRuntimeBindings),
}Expand description
Discriminant for how the factory should resolve async-operation lifecycle resources.
StandaloneEphemeral: factory creates local-only ephemeral bindings for non-comms semantics. Comms peer request/response remains transport-only unless the host prepares explicitSessionOwnedauthority.SessionOwned: factory consumes pre-created bindings from the runtime epoch owner. Never creates a competing registry.
The SessionOwned variant is intentionally large — it carries the full
bundle of Arc-wrapped DSL handles and registries. Every value passes
through the factory exactly once, never lands in a collection, so paying
for an extra heap indirection on every construction would regress the hot
path. The StandaloneEphemeral path only appears in WASM, tests, and
standalone embedded runs that do not need semantic peer request/response
authority.
Variants§
StandaloneEphemeral
Standalone: factory creates local-only ephemeral bindings.
SessionOwned(SessionRuntimeBindings)
Runtime-backed: factory consumes pre-created bindings. The epoch_id and session_id serve as identity witnesses.
Trait Implementations§
Source§impl Clone for RuntimeBuildMode
impl Clone for RuntimeBuildMode
Auto Trait Implementations§
impl Freeze for RuntimeBuildMode
impl !RefUnwindSafe for RuntimeBuildMode
impl Send for RuntimeBuildMode
impl Sync for RuntimeBuildMode
impl Unpin for RuntimeBuildMode
impl UnsafeUnpin for RuntimeBuildMode
impl !UnwindSafe for RuntimeBuildMode
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