Skip to main content

ModpackProvider

Trait ModpackProvider 

Source
pub trait ModpackProvider {
    // Required methods
    fn export(
        &self,
        paths: &CorePaths,
        output_path: &Path,
        include_config: bool,
    ) -> CoreResult<()>;
    fn analyze(&self, input_path: &Path) -> CoreResult<PackAnalysis>;
    fn import(
        &self,
        paths: &CorePaths,
        input_path: &Path,
        callbacks: &mut dyn CoreCallbacks,
    ) -> CoreResult<()>;
}

Required Methods§

Source

fn export( &self, paths: &CorePaths, output_path: &Path, include_config: bool, ) -> CoreResult<()>

Source

fn analyze(&self, input_path: &Path) -> CoreResult<PackAnalysis>

Source

fn import( &self, paths: &CorePaths, input_path: &Path, callbacks: &mut dyn CoreCallbacks, ) -> CoreResult<()>

Implementors§