Skip to main content

Build

Trait Build 

Source
pub trait Build: Binding {
    // Required methods
    fn start_build<'life0, 'async_trait>(
        &'life0 self,
        config: BuildConfig,
    ) -> Pin<Box<dyn Future<Output = Result<BuildExecution>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_build_status<'life0, 'life1, 'async_trait>(
        &'life0 self,
        build_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<BuildExecution>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn stop_build<'life0, 'life1, 'async_trait>(
        &'life0 self,
        build_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

A build binding that provides build execution capabilities.

Required Methods§

Source

fn start_build<'life0, 'async_trait>( &'life0 self, config: BuildConfig, ) -> Pin<Box<dyn Future<Output = Result<BuildExecution>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Starts a new build with the given configuration. Returns the build execution information.

Source

fn get_build_status<'life0, 'life1, 'async_trait>( &'life0 self, build_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<BuildExecution>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Gets the status of a specific build execution.

Source

fn stop_build<'life0, 'life1, 'async_trait>( &'life0 self, build_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Stops or cancels a running build.

Implementors§