pub struct BootstrapCtx {
pub component_ref: ComponentRef,
}Expand description
Per-dispatch context handed to a Component bootstrap. F5 will
extend this with RuntimeResourceRef-style accessors so impls
can stage outputs, allocate resources, or surface
CompletionHandles for async work. Today the struct only
carries the dispatching Component’s reference so impls have a
stable identifier they can log against.
Held by-mut so the F5 plumbing can mutate per-dispatch staging state without exposing the framework’s internal sequencing to the impl.
Fields§
§component_ref: ComponentRefComponentRef of the Component whose bootstrap is firing.
Impls treat this as opaque; debug printers + telemetry taps
surface it so cross-Component traces can correlate the
bootstrap phase with later Contract-method dispatches.
Implementations§
Source§impl BootstrapCtx
impl BootstrapCtx
Sourcepub fn new(component_ref: ComponentRef) -> Self
pub fn new(component_ref: ComponentRef) -> Self
Construct a fresh context for component_ref.
Auto Trait Implementations§
impl Freeze for BootstrapCtx
impl RefUnwindSafe for BootstrapCtx
impl Send for BootstrapCtx
impl Sync for BootstrapCtx
impl Unpin for BootstrapCtx
impl UnsafeUnpin for BootstrapCtx
impl UnwindSafe for BootstrapCtx
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
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>
Wrap the input message
T in a tonic::Request