pub(crate) struct SystemLifecycleDriver {
pub(crate) atlas: AtlasClient,
pub(crate) provider_id: String,
pub(crate) shutdown_tx: Sender<bool>,
}Fields§
§atlas: AtlasClient§provider_id: String§shutdown_tx: Sender<bool>Implementations§
Source§impl SystemLifecycleDriver
impl SystemLifecycleDriver
pub(crate) fn new(atlas: AtlasClient, provider_id: String) -> Self
Sourcepub(crate) async fn transition(&self, command: u32) -> Result<&'static str>
pub(crate) async fn transition(&self, command: u32) -> Result<&'static str>
Apply one no-op lifecycle callback and publish its authoritative state to Atlas. Unknown commands and rejected Atlas transitions are errors.
pub(crate) fn subscribe_shutdown(&self) -> Receiver<bool>
Trait Implementations§
Source§impl Clone for SystemLifecycleDriver
impl Clone for SystemLifecycleDriver
Source§fn clone(&self) -> SystemLifecycleDriver
fn clone(&self) -> SystemLifecycleDriver
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl RobonixLifecycleDriver for SystemLifecycleDriver
impl RobonixLifecycleDriver for SystemLifecycleDriver
Source§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,
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,
Serve the shared Driver RPC and report callback/transition failures in the stable DriverResponse envelope used by launchers.
Auto Trait Implementations§
impl !Freeze for SystemLifecycleDriver
impl !RefUnwindSafe for SystemLifecycleDriver
impl Send for SystemLifecycleDriver
impl Sync for SystemLifecycleDriver
impl Unpin for SystemLifecycleDriver
impl UnsafeUnpin for SystemLifecycleDriver
impl !UnwindSafe for SystemLifecycleDriver
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>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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].