pub trait CompileHandler<F: CompilerFeat, Ext>:
Send
+ Sync
+ 'static {
// Required methods
fn on_any_compile_reason(&self, state: &mut ProjectCompiler<F, Ext>);
fn notify_compile(&self, res: &CompiledArtifact<F>);
fn status(&self, revision: usize, rep: CompileReport);
// Provided method
fn notify_removed(&self, _id: &ProjectInsId) { ... }
}
Expand description
A project compiler handler.
Required Methods§
Sourcefn on_any_compile_reason(&self, state: &mut ProjectCompiler<F, Ext>)
fn on_any_compile_reason(&self, state: &mut ProjectCompiler<F, Ext>)
Called when there is any reason to compile. This doesn’t mean that the project should be compiled.
Sourcefn notify_compile(&self, res: &CompiledArtifact<F>)
fn notify_compile(&self, res: &CompiledArtifact<F>)
Called when a compilation is done.
Sourcefn status(&self, revision: usize, rep: CompileReport)
fn status(&self, revision: usize, rep: CompileReport)
Called when the compilation status is changed.
Provided Methods§
Sourcefn notify_removed(&self, _id: &ProjectInsId)
fn notify_removed(&self, _id: &ProjectInsId)
Called when a project is removed.
Implementations on Foreign Types§
Source§impl<F: CompilerFeat + Send + Sync + 'static, Ext: 'static> CompileHandler<F, Ext> for PhantomData<fn(_: F, _: Ext)>
No need so no compilation.
impl<F: CompilerFeat + Send + Sync + 'static, Ext: 'static> CompileHandler<F, Ext> for PhantomData<fn(_: F, _: Ext)>
No need so no compilation.