pub struct ManagedRuntimeClient { /* private fields */ }Expand description
Shared durable lifecycle implementation used by provider integrations.
Implementations§
Source§impl ManagedRuntimeClient
impl ManagedRuntimeClient
pub fn new( state: Arc<dyn RuntimeStateStore>, driver: Arc<dyn RuntimeDriver>, ) -> Self
pub fn with_clock( state: Arc<dyn RuntimeStateStore>, driver: Arc<dyn RuntimeDriver>, clock: Arc<dyn RuntimeClock>, ) -> Self
Trait Implementations§
Source§impl RuntimeClient for ManagedRuntimeClient
impl RuntimeClient for ManagedRuntimeClient
fn capabilities<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RuntimeResult<RuntimeCapabilities>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn apply<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RuntimeApplyRequest,
) -> Pin<Box<dyn Future<Output = RuntimeResult<RuntimeObservation>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn inspect<'life0, 'life1, 'async_trait>(
&'life0 self,
unit_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = RuntimeResult<RuntimeInspection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn stop<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RuntimeActionRequest,
) -> Pin<Box<dyn Future<Output = RuntimeResult<RuntimeInspection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn remove<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RuntimeActionRequest,
) -> Pin<Box<dyn Future<Output = RuntimeResult<RuntimeRemoval>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn logs<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 RuntimeLogQuery,
) -> Pin<Box<dyn Future<Output = RuntimeResult<Vec<RuntimeLogChunk>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn exec<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RuntimeExecRequest,
) -> Pin<Box<dyn Future<Output = RuntimeResult<RuntimeExecResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for ManagedRuntimeClient
impl !UnwindSafe for ManagedRuntimeClient
impl Freeze for ManagedRuntimeClient
impl Send for ManagedRuntimeClient
impl Sync for ManagedRuntimeClient
impl Unpin for ManagedRuntimeClient
impl UnsafeUnpin for ManagedRuntimeClient
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