Skip to main content

PythonEnvironmentPort

Trait PythonEnvironmentPort 

Source
pub trait PythonEnvironmentPort: Send + Sync {
    // Required methods
    fn status<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Value, PortError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn prune<'life0, 'async_trait>(
        &'life0 self,
        stale_before_unix_seconds: u64,
        max_entries: usize,
        apply: bool,
    ) -> Pin<Box<dyn Future<Output = Result<Value, PortError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn repair<'life0, 'life1, 'async_trait>(
        &'life0 self,
        provider_path: &'life1 Path,
    ) -> Pin<Box<dyn Future<Output = Result<Value, PortError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn update<'life0, 'life1, 'async_trait>(
        &'life0 self,
        provider_path: &'life1 Path,
    ) -> Pin<Box<dyn Future<Output = Result<PythonEnvironmentUpdateCandidate, PortError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Operator control plane for production-managed Python environments.

Required Methods§

Source

fn status<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Value, PortError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Inventories every managed cache entry without executing provider code.

Source

fn prune<'life0, 'async_trait>( &'life0 self, stale_before_unix_seconds: u64, max_entries: usize, apply: bool, ) -> Pin<Box<dyn Future<Output = Result<Value, PortError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Plans or applies a bounded prune of stale non-ready entries.

Source

fn repair<'life0, 'life1, 'async_trait>( &'life0 self, provider_path: &'life1 Path, ) -> Pin<Box<dyn Future<Output = Result<Value, PortError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Repairs the exact environment planned for one managed provider.

Source

fn update<'life0, 'life1, 'async_trait>( &'life0 self, provider_path: &'life1 Path, ) -> Pin<Box<dyn Future<Output = Result<PythonEnvironmentUpdateCandidate, PortError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Prepares an immutable candidate for later atomic registry activation.

Implementors§