pub enum BootstrapTarget<'a> {
All,
ModuleNames(&'a [&'a str]),
ModuleRequests(&'a [BootstrapRequest<'a>]),
Slots(&'a [&'a str]),
}Expand description
Selector for Node::run_bootstrap. One enum, four variants
covering every bootstrap-kick shape — install-order, by Module
target name, by Module target name with staged inputs, and by
Component slot.
Variants§
All
Drive every install-order Module bootstrap target on this Node.
Equivalent to the F4 host kick: arms + seeds the install-order
queue, then drives the engine until every queued target reaches
BootstrapComplete or one suspends on async.
ModuleNames(&'a [&'a str])
Drive specific Module bootstrap targets by name (with empty
inputs). Surfaces BootstrapError::UnknownTarget when any name
is not a registered Module bootstrap; the batch validates
atomically before any staging happens. Useful when the host
knows every target’s bootstrap takes no formals.
ModuleRequests(&'a [BootstrapRequest<'a>])
Drive Module bootstrap targets with explicit inputs. Each
BootstrapRequest’s inputs are validated against the
target’s declared formals; the framework copies each
borrowed &[u8] into engine-owned storage (Principle 1a).
On any validation failure the engine’s bootstrap state stays
untouched.
Slots(&'a [&'a str])
Drive Component bootstraps by slot name. Each slot must resolve to a registered Component bootstrap; the batch validates atomically before any dispatch fires. Slots fire in slice order through the registered Bootstrap dispatcher.
Auto Trait Implementations§
impl<'a> Freeze for BootstrapTarget<'a>
impl<'a> RefUnwindSafe for BootstrapTarget<'a>
impl<'a> Send for BootstrapTarget<'a>
impl<'a> Sync for BootstrapTarget<'a>
impl<'a> Unpin for BootstrapTarget<'a>
impl<'a> UnsafeUnpin for BootstrapTarget<'a>
impl<'a> UnwindSafe for BootstrapTarget<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedComponent for T
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request