Skip to main content

Elbv2TargetRegistration

Trait Elbv2TargetRegistration 

Source
pub trait Elbv2TargetRegistration: Send + Sync {
    // Required methods
    fn register_targets(
        &self,
        account_id: &str,
        target_group_arn: &str,
        targets: Vec<(String, Option<i64>)>,
    );
    fn deregister_targets(
        &self,
        account_id: &str,
        target_group_arn: &str,
        targets: Vec<(String, Option<i64>)>,
    );
}
Expand description

Register/deregister targets with ELBv2 target groups from outside the elbv2 crate. Used by ECS runtime when tasks with load balancers reach RUNNING or STOPPED.

Required Methods§

Source

fn register_targets( &self, account_id: &str, target_group_arn: &str, targets: Vec<(String, Option<i64>)>, )

Source

fn deregister_targets( &self, account_id: &str, target_group_arn: &str, targets: Vec<(String, Option<i64>)>, )

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§