pub struct ExecutorLifecycleDriver {
atlas: AtlasClient,
provider_id: String,
runtime: PlanRuntime,
transition_lock: Arc<Mutex<()>>,
shutdown_tx: Sender<bool>,
}Expand description
Publish lifecycle transitions and request graceful gRPC shutdown.
Fields§
§atlas: AtlasClientRegistry connection for authoritative provider state.
provider_id: StringRegistered Executor provider identity.
runtime: PlanRuntimeExecution admission and active work shared with both Execute RPCs.
transition_lock: Arc<Mutex<()>>Serialize lifecycle commands through their Atlas acknowledgement.
shutdown_tx: Sender<bool>Retain shutdown requests until the server and heartbeat observe them.
Implementations§
Source§impl ExecutorLifecycleDriver
impl ExecutorLifecycleDriver
pub fn new( atlas: AtlasClient, provider_id: String, runtime: PlanRuntime, ) -> Self
pub fn subscribe_shutdown(&self) -> Receiver<bool>
async fn transition(&self, command: u32) -> Result<&'static str>
Trait Implementations§
Source§impl Clone for ExecutorLifecycleDriver
impl Clone for ExecutorLifecycleDriver
Source§impl RobonixLifecycleDriver for ExecutorLifecycleDriver
impl RobonixLifecycleDriver for ExecutorLifecycleDriver
fn driver<'life0, 'async_trait>(
&'life0 self,
request: Request<DriverRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DriverResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !Freeze for ExecutorLifecycleDriver
impl !RefUnwindSafe for ExecutorLifecycleDriver
impl !UnwindSafe for ExecutorLifecycleDriver
impl Send for ExecutorLifecycleDriver
impl Sync for ExecutorLifecycleDriver
impl Unpin for ExecutorLifecycleDriver
impl UnsafeUnpin for ExecutorLifecycleDriver
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].