Skip to main content

TargetAdapter

Trait TargetAdapter 

Source
pub trait TargetAdapter {
    // Required methods
    fn name(&self) -> &'static str;
    fn doctor(
        &self,
        root: &Path,
        config: &Config,
        lock: &LockFile,
    ) -> Result<DiagnosticReport>;
    fn build(
        &self,
        root: &Path,
        config: &Config,
        lock: &LockFile,
    ) -> Result<BuildOutput>;
}

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn doctor( &self, root: &Path, config: &Config, lock: &LockFile, ) -> Result<DiagnosticReport>

Source

fn build( &self, root: &Path, config: &Config, lock: &LockFile, ) -> Result<BuildOutput>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§