pub trait BuildBackend: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn build<'life0, 'life1, 'async_trait>(
&'life0 self,
drv: &'life1 Drv,
) -> Pin<Box<dyn Future<Output = Result<BuildResult, BuildError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Pluggable build backend trait.
Required Methods§
Sourcefn build<'life0, 'life1, 'async_trait>(
&'life0 self,
drv: &'life1 Drv,
) -> Pin<Box<dyn Future<Output = Result<BuildResult, BuildError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn build<'life0, 'life1, 'async_trait>(
&'life0 self,
drv: &'life1 Drv,
) -> Pin<Box<dyn Future<Output = Result<BuildResult, BuildError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Build the drv. Returns realisations + NAR blobs.
§Errors
BuildError::Backend on backend failure;
BuildError::InvalidDrv for malformed drvs.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".