pub struct RuntimeHandles {
pub trim: TrimHandle,
pub purge: PurgeHandle,
pub kv_handoff: HostHandoffHandle,
pub shutdown: Receiver<bool>,
}Expand description
Runtime handles handed to ServerWiring::on_ready — the narrow set of
engine-runtime operations a deployment-side admin surface needs.
Fields§
§trim: TrimHandle§purge: PurgeHandleTenant lifecycle purge (lane/kv-tenancy-compaction-20260831): the deployment admin surface calls this from its key-revocation and tenant-deletion paths.
kv_handoff: HostHandoffHandleHost-tier deploy handoff (lane/host-tier-deploy-warmth-20260901): the deployment
admin surface exposes these as POST /admin/kv-host/export (called by
serve-deploy on the DRAINED old slot after the edge flip) and
POST /admin/kv-host/import (called on the promoted slot right after). Both are
inert unless MEMRA_KV_HOST_HANDOFF names a path on the slot.
shutdown: Receiver<bool>Flips to true when the graceful drain completes (the moment the in-tree
admin listener stops). A deployment-side surface MUST end and drop its
TrimHandle AND PurgeHandle on this signal: each handle wraps a worker
command sender, and the GPU worker only exits when every sender is dropped.
Auto Trait Implementations§
impl Freeze for RuntimeHandles
impl RefUnwindSafe for RuntimeHandles
impl Send for RuntimeHandles
impl Sync for RuntimeHandles
impl Unpin for RuntimeHandles
impl UnsafeUnpin for RuntimeHandles
impl UnwindSafe for RuntimeHandles
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more