pub struct NativeProcesses { /* private fields */ }Expand description
Native process supervision. The start token is stored beside the runtime; recovery never trusts a recycled PID merely because SQLite contains it.
Implementations§
Trait Implementations§
Source§impl Debug for NativeProcesses
impl Debug for NativeProcesses
Source§impl Default for NativeProcesses
impl Default for NativeProcesses
Source§fn default() -> NativeProcesses
fn default() -> NativeProcesses
Returns the “default value” for a type. Read more
Source§impl ProcessSupervisor for NativeProcesses
impl ProcessSupervisor for NativeProcesses
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>
Auto Trait Implementations§
impl !Freeze for NativeProcesses
impl RefUnwindSafe for NativeProcesses
impl Send for NativeProcesses
impl Sync for NativeProcesses
impl Unpin for NativeProcesses
impl UnsafeUnpin for NativeProcesses
impl UnwindSafe for NativeProcesses
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