pub struct StagedBundle {
pub target: RuntimeTarget,
pub catalog_hash: String,
}Expand description
A staged config-as-data bundle: a hot payload (new tool catalog, and with it
prompts / persona defs / model routing) plus the RuntimeTarget it was
authored against.
The bundle rides on top of whatever binary is already running, so it declares the runtime it needs and the running binary refuses it unless its own runtime matches exactly — the refuse-incompatible interlock.
Fields§
§target: RuntimeTargetThe runtime this bundle was authored against; the running binary must match it exactly to apply the bundle.
catalog_hash: StringThe config-as-data payload identity this bundle delivers (the new tool catalog hash).
Implementations§
Source§impl StagedBundle
impl StagedBundle
Sourcepub fn new(target: RuntimeTarget, catalog_hash: impl Into<String>) -> Self
pub fn new(target: RuntimeTarget, catalog_hash: impl Into<String>) -> Self
Build a staged bundle from its target runtime and payload hash.
Sourcepub fn evaluate(&self, running: &Fingerprint) -> Compatibility
pub fn evaluate(&self, running: &Fingerprint) -> Compatibility
Decide whether running may apply this bundle.
Returns Compatibility::Hot when the running runtime matches the
bundle’s target exactly (the bundle reloads with no restart), or
Compatibility::Incompatible naming the first mismatching axis when it
does not — the bundle is refused rather than applied against a runtime it
was never built for.
Trait Implementations§
Source§impl Clone for StagedBundle
impl Clone for StagedBundle
Source§fn clone(&self) -> StagedBundle
fn clone(&self) -> StagedBundle
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StagedBundle
impl Debug for StagedBundle
impl Eq for StagedBundle
Source§impl PartialEq for StagedBundle
impl PartialEq for StagedBundle
impl StructuralPartialEq for StagedBundle
Auto Trait Implementations§
impl Freeze for StagedBundle
impl RefUnwindSafe for StagedBundle
impl Send for StagedBundle
impl Sync for StagedBundle
impl Unpin for StagedBundle
impl UnsafeUnpin for StagedBundle
impl UnwindSafe for StagedBundle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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