Skip to main content

BuildProfileHandler

Trait BuildProfileHandler 

Source
pub trait BuildProfileHandler {
    // Required methods
    fn profile(&self) -> BuildProfile;
    fn detect(&self, workspace: &Path) -> bool;
    fn run_build(
        &self,
        workspace: &Path,
        package_name: &str,
        line_callback: &mut Option<&mut dyn FnMut(&str)>,
    ) -> Result<PathBuf>;
}

Required Methods§

Source

fn profile(&self) -> BuildProfile

Source

fn detect(&self, workspace: &Path) -> bool

Source

fn run_build( &self, workspace: &Path, package_name: &str, line_callback: &mut Option<&mut dyn FnMut(&str)>, ) -> Result<PathBuf>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§