pub trait CanaryDeployment: Send + Sync {
// Required methods
fn start_canary<'life0, 'async_trait>(
&'life0 mut self,
request: DeploymentRequest,
) -> Pin<Box<dyn Future<Output = ActuatorResult<DeploymentStatus>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn promote<'life0, 'life1, 'async_trait>(
&'life0 mut self,
deployment_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ActuatorResult<DeploymentStatus>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn complete<'life0, 'life1, 'async_trait>(
&'life0 mut self,
deployment_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ActuatorResult<DeploymentStatus>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn abort<'life0, 'life1, 'async_trait>(
&'life0 mut self,
deployment_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ActuatorResult<RollbackResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_status<'life0, 'life1, 'async_trait>(
&'life0 self,
deployment_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ActuatorResult<DeploymentStatus>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn can_promote<'life0, 'life1, 'async_trait>(
&'life0 self,
deployment_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ActuatorResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Trait for canary deployment
Required Methods§
Sourcefn start_canary<'life0, 'async_trait>(
&'life0 mut self,
request: DeploymentRequest,
) -> Pin<Box<dyn Future<Output = ActuatorResult<DeploymentStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start_canary<'life0, 'async_trait>(
&'life0 mut self,
request: DeploymentRequest,
) -> Pin<Box<dyn Future<Output = ActuatorResult<DeploymentStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start a canary deployment
Sourcefn promote<'life0, 'life1, 'async_trait>(
&'life0 mut self,
deployment_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ActuatorResult<DeploymentStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn promote<'life0, 'life1, 'async_trait>(
&'life0 mut self,
deployment_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ActuatorResult<DeploymentStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Promote to next canary phase
Sourcefn complete<'life0, 'life1, 'async_trait>(
&'life0 mut self,
deployment_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ActuatorResult<DeploymentStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn complete<'life0, 'life1, 'async_trait>(
&'life0 mut self,
deployment_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ActuatorResult<DeploymentStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Complete canary deployment (promote to 100%)
Sourcefn abort<'life0, 'life1, 'async_trait>(
&'life0 mut self,
deployment_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ActuatorResult<RollbackResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn abort<'life0, 'life1, 'async_trait>(
&'life0 mut self,
deployment_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ActuatorResult<RollbackResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Abort canary deployment
Sourcefn get_status<'life0, 'life1, 'async_trait>(
&'life0 self,
deployment_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ActuatorResult<DeploymentStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_status<'life0, 'life1, 'async_trait>(
&'life0 self,
deployment_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ActuatorResult<DeploymentStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get current canary status
Sourcefn can_promote<'life0, 'life1, 'async_trait>(
&'life0 self,
deployment_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ActuatorResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn can_promote<'life0, 'life1, 'async_trait>(
&'life0 self,
deployment_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ActuatorResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if phase can be promoted
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".