Skip to main content

ProjectContextProvider

Trait ProjectContextProvider 

Source
pub trait ProjectContextProvider: Send + Sync {
    // Required methods
    fn initial(
        &self,
        workspace: &Path,
        home: Option<&Path>,
    ) -> Result<ProjectContext, ContextError>;
    fn scoped(
        &self,
        workspace: &Path,
        targets: &[PathBuf],
        delivered: &BTreeSet<PathBuf>,
    ) -> Result<ProjectContext, ContextError>;
}

Required Methods§

Source

fn initial( &self, workspace: &Path, home: Option<&Path>, ) -> Result<ProjectContext, ContextError>

Source

fn scoped( &self, workspace: &Path, targets: &[PathBuf], delivered: &BTreeSet<PathBuf>, ) -> Result<ProjectContext, ContextError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§