pub struct PythonAdapter {
pub python: Option<PathBuf>,
/* private fields */
}Expand description
Python adapter.
Fields§
§python: Option<PathBuf>Discovered interpreter path, if any.
Implementations§
Source§impl PythonAdapter
impl PythonAdapter
Source§impl PythonAdapter
impl PythonAdapter
Sourcepub async fn resume_checkpoint(
&self,
ues: Value,
policy: &SandboxPolicy,
) -> Result<ResumeCheckpointResponse>
pub async fn resume_checkpoint( &self, ues: Value, policy: &SandboxPolicy, ) -> Result<ResumeCheckpointResponse>
Same-runtime resume from a checkpoint-produced UES (Continuum experimental).
Trait Implementations§
Source§impl RuntimeAdapter for PythonAdapter
impl RuntimeAdapter for PythonAdapter
Source§fn kind(&self) -> RuntimeKind
fn kind(&self) -> RuntimeKind
Runtime kind.
Source§fn metadata(&self) -> RuntimeMetadata
fn metadata(&self) -> RuntimeMetadata
Static metadata.
Source§fn capabilities(&self) -> RuntimeCapabilities
fn capabilities(&self) -> RuntimeCapabilities
Declared capabilities.
Source§fn probe<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RuntimeStatus> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn probe<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RuntimeStatus> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Probe host availability (may spawn briefly).
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
request: ExecutionRequest,
policy: &'life1 SandboxPolicy,
) -> Pin<Box<dyn Future<Output = Result<ExecutionResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
request: ExecutionRequest,
policy: &'life1 SandboxPolicy,
) -> Pin<Box<dyn Future<Output = Result<ExecutionResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute a program, optionally capturing bindings listed in the request.
Source§fn restore<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
pir: &'life1 PirDocument,
policy: &'life2 SandboxPolicy,
) -> Pin<Box<dyn Future<Output = Result<RestoreResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn restore<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
pir: &'life1 PirDocument,
policy: &'life2 SandboxPolicy,
) -> Pin<Box<dyn Future<Output = Result<RestoreResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Restore PIR bindings into a fresh worker context.
Auto Trait Implementations§
impl Freeze for PythonAdapter
impl RefUnwindSafe for PythonAdapter
impl Send for PythonAdapter
impl Sync for PythonAdapter
impl Unpin for PythonAdapter
impl UnsafeUnpin for PythonAdapter
impl UnwindSafe for PythonAdapter
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