pub struct OciProcesses { /* private fields */ }Implementations§
Source§impl OciProcesses
impl OciProcesses
pub fn new(host: HostId) -> Self
Sourcepub fn engine_for_this_process() -> Engine
pub fn engine_for_this_process() -> Engine
The engine this process reaches: the rootful service for root on
Linux, rootless Podman for anyone else.
Sourcepub fn apply(&mut self, settings: IsolationSettings)
pub fn apply(&mut self, settings: IsolationSettings)
Applies settings.
Sourcepub fn host_capability(&self) -> ProviderCapability
pub fn host_capability(&self) -> ProviderCapability
Whether this host can run isolated jobs at all, before any image.
Trait Implementations§
Source§impl Debug for OciProcesses
impl Debug for OciProcesses
Source§impl ExecutionProvider for OciProcesses
impl ExecutionProvider for OciProcesses
fn probe(&self, policy: &ScalePolicy) -> ProviderCapability
Source§fn resolve(
&self,
policy: &ScalePolicy,
) -> Result<Option<ResolvedEnvironment>, FailureReason>
fn resolve( &self, policy: &ScalePolicy, ) -> Result<Option<ResolvedEnvironment>, FailureReason>
Resolve Auto and image identity before allocation or GitHub JIT. Native has no image.
fn prepare( &self, attempt: &RunnerAttempt, policy: &ScalePolicy, ) -> Result<PreparedEnvironment, FailureReason>
fn start( &self, prepared: PreparedEnvironment, attempt: &RunnerAttempt, handoff: OneTimeJitHandoff<'_>, ) -> Result<EnvironmentIdentity, ProcessStartFailure>
fn inspect( &self, attempt: &RunnerAttempt, ) -> Result<EnvironmentState, FailureReason>
fn recover( &self, attempt: &RunnerAttempt, ) -> Result<EnvironmentState, FailureReason>
fn stop(&self, attempt: &RunnerAttempt) -> Result<ProviderStop, FailureReason>
fn destroy( &self, attempt: &RunnerAttempt, ) -> Result<ProviderDestroy, FailureReason>
Source§fn owns(&self, attempt: &RunnerAttempt) -> Result<bool, FailureReason>
fn owns(&self, attempt: &RunnerAttempt) -> Result<bool, FailureReason>
Independent resource metadata must match the journal before destructive calls.
fn enumerate_owned(&self, host: HostId) -> Vec<EnvironmentIdentity>
fn spawn( &self, attempt: &RunnerAttempt, config: &EncodedJitConfig, ) -> Result<u32, ProcessStartFailure>
fn is_alive(&self, attempt: &RunnerAttempt) -> Result<bool, FailureReason>
Source§fn recovered_pid(
&self,
attempt: &RunnerAttempt,
) -> Result<Option<u32>, FailureReason>
fn recovered_pid( &self, attempt: &RunnerAttempt, ) -> Result<Option<u32>, FailureReason>
Durable identity observed for a process that spawned before the
starting journal write survived.Source§fn completed_successfully(&self, attempt: &RunnerAttempt) -> bool
fn completed_successfully(&self, attempt: &RunnerAttempt) -> bool
True only for a child this invocation owned and reaped with a successful
exit status. A recovered process that is merely gone answers false.
fn record_terminate_intent( &self, attempt: &RunnerAttempt, ) -> Result<(), FailureReason>
fn has_terminate_intent(&self, attempt: &RunnerAttempt) -> bool
fn terminate(&self, attempt: &RunnerAttempt) -> Result<(), FailureReason>
fn diagnostics(&self, _attempt: &RunnerAttempt) -> Vec<ProviderDiagnostic>
Auto Trait Implementations§
impl !Freeze for OciProcesses
impl !RefUnwindSafe for OciProcesses
impl !UnwindSafe for OciProcesses
impl Forget for OciProcesses
impl Send for OciProcesses
impl Sync for OciProcesses
impl Unpin for OciProcesses
impl UnsafeUnpin for OciProcesses
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