pub struct OciLocalExecutionBackend { /* private fields */ }Expand description
Opt-in canonical local-execution backend over one A3S OCI host service.
Implementations§
Source§impl OciLocalExecutionBackend
impl OciLocalExecutionBackend
Sourcepub fn from_client(
endpoint: OciRuntimeEndpoint,
client: RuntimeClient,
provider: Arc<dyn OciBundleProvider>,
) -> ExecutionManagerResult<Self>
pub fn from_client( endpoint: OciRuntimeEndpoint, client: RuntimeClient, provider: Arc<dyn OciBundleProvider>, ) -> ExecutionManagerResult<Self>
Construct from an already connected public SDK client.
Sourcepub async fn connect(
endpoint: OciRuntimeEndpoint,
provider: Arc<dyn OciBundleProvider>,
) -> ExecutionManagerResult<Self>
pub async fn connect( endpoint: OciRuntimeEndpoint, provider: Arc<dyn OciBundleProvider>, ) -> ExecutionManagerResult<Self>
Connect to a local host service and retain only its public SDK boundary.
Trait Implementations§
Source§impl Clone for OciLocalExecutionBackend
impl Clone for OciLocalExecutionBackend
Source§fn clone(&self) -> OciLocalExecutionBackend
fn clone(&self) -> OciLocalExecutionBackend
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 LocalExecutionBackend for OciLocalExecutionBackend
impl LocalExecutionBackend for OciLocalExecutionBackend
Source§fn route_for_create(
&self,
_record: &BoxRecord,
) -> ExecutionManagerResult<ManagedRuntimeRoute>
fn route_for_create( &self, _record: &BoxRecord, ) -> ExecutionManagerResult<ManagedRuntimeRoute>
Select the durable route for a new record before capability preflight. Read more
Source§fn preflight<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn preflight<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Reject an unsupported execution before its durable reservation is
published. Backends must repeat mutable capability checks at launch.
fn start<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<LocalExecutionHandle>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn inspect<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<LocalExecutionObservation>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn pause<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
keep_memory: bool,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<LocalExecutionHandle>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resume<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<LocalExecutionHandle>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn preflight_resource_update<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
update: &'life2 ExecutionResourceUpdate,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn preflight_resource_update<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
update: &'life2 ExecutionResourceUpdate,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Validate a complete live resource contract before a durable mutation claim.
Source§fn update_resources<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
operation_id: &'life2 BoxOperationId,
update: &'life3 ExecutionResourceUpdate,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn update_resources<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
operation_id: &'life2 BoxOperationId,
update: &'life3 ExecutionResourceUpdate,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Apply the exact persisted resource update operation.
Source§fn list_processes<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<ExecutionProcessInventory>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_processes<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<ExecutionProcessInventory>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Return live init and exec processes for the record’s exact runtime target.
Source§fn stats<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<ExecutionStats>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn stats<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<ExecutionStats>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Return normalized counters for the record’s exact runtime target.
Source§fn events<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
request: ExecutionEventsRequest,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<ExecutionEventBatch>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn events<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
request: ExecutionEventsRequest,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<ExecutionEventBatch>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Poll ordered events for the record’s exact runtime target.
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
request: BoxExecRequest,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<ExecOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
request: BoxExecRequest,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<ExecOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute one captured process through a backend-owned, generation-fenced
session boundary. The legacy VM backend retains its socket transport;
SDK-backed implementations override this method.
Source§fn start_process<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
request: BoxExecRequest,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<ExecutionProcess>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn start_process<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
request: BoxExecRequest,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<ExecutionProcess>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Start one streaming non-terminal process through the backend boundary.
Source§fn start_pty<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
request: PtyRequest,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<ExecutionProcess>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn start_pty<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
request: PtyRequest,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<ExecutionProcess>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Start one interactive terminal process through the backend boundary.
Source§fn transfer_file<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
request: BoxFileRequest,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<BoxFileResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn transfer_file<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
request: BoxFileRequest,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<BoxFileResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Transfer one file through the backend’s exact-generation session.
Source§fn filesystem<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
request: BoxFilesystemRequest,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<BoxFilesystemResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn filesystem<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
request: BoxFilesystemRequest,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<BoxFilesystemResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Inspect or mutate the exact generation’s workload filesystem.
fn kill<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<KillOutcome>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn kill_with_status<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<LocalExecutionTermination>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn kill_with_status<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<LocalExecutionTermination>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Kill the current execution and return its exact terminal status when the
backend provides one. Implementations that cannot observe status retain
the legacy
kill behavior through this default.Source§fn prepare_quiescent_rootfs<'life0, 'life1, 'async_trait>(
&'life0 self,
_record: &'life1 BoxRecord,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn prepare_quiescent_rootfs<'life0, 'life1, 'async_trait>(
&'life0 self,
_record: &'life1 BoxRecord,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Make a stopped, storage-retained rootfs available for a filesystem
snapshot without starting the execution runtime.
Source§fn cleanup_quiescent_rootfs<'life0, 'life1, 'async_trait>(
&'life0 self,
_record: &'life1 BoxRecord,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn cleanup_quiescent_rootfs<'life0, 'life1, 'async_trait>(
&'life0 self,
_record: &'life1 BoxRecord,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Release any transient rootfs mount created by
Self::prepare_quiescent_rootfs while retaining guest data.Source§fn stop_for_restart<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
_timeout_secs: Option<u64>,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<KillOutcome>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn stop_for_restart<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 BoxRecord,
_timeout_secs: Option<u64>,
) -> Pin<Box<dyn Future<Output = ExecutionManagerResult<KillOutcome>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Stop the current runtime while preserving execution-owned storage for
the replacement generation.
Auto Trait Implementations§
impl !RefUnwindSafe for OciLocalExecutionBackend
impl !UnwindSafe for OciLocalExecutionBackend
impl Freeze for OciLocalExecutionBackend
impl Send for OciLocalExecutionBackend
impl Sync for OciLocalExecutionBackend
impl Unpin for OciLocalExecutionBackend
impl UnsafeUnpin for OciLocalExecutionBackend
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
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> ⓘ
Converts
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> ⓘ
Converts
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