Skip to main content

UvRunner

Trait UvRunner 

Source
pub trait UvRunner: Send + Sync {
    // Required method
    fn run(
        &self,
        program: &Path,
        args: &[OsString],
        current_dir: &Path,
    ) -> Result<(), String>;

    // Provided methods
    fn verify_identity(
        &self,
        _program: &Path,
        _expected_version: &str,
    ) -> Result<(), String> { ... }
    fn verify_python(
        &self,
        _program: &Path,
        _expected: &PythonRuntimeFingerprint,
    ) -> Result<(), String> { ... }
}

Required Methods§

Source

fn run( &self, program: &Path, args: &[OsString], current_dir: &Path, ) -> Result<(), String>

Provided Methods§

Source

fn verify_identity( &self, _program: &Path, _expected_version: &str, ) -> Result<(), String>

Source

fn verify_python( &self, _program: &Path, _expected: &PythonRuntimeFingerprint, ) -> Result<(), String>

Implementors§