Skip to main content

InstanceResolver

Trait InstanceResolver 

Source
pub trait InstanceResolver: Send + Sync {
    // Required method
    fn resolve(
        &self,
        account_id: &str,
        instance_id: &str,
        port: u16,
        source_groups: Vec<String>,
    ) -> ResolveFuture;
}
Expand description

Publishes a port of an EC2 instance on demand and says where it landed.

Required Methods§

Source

fn resolve( &self, account_id: &str, instance_id: &str, port: u16, source_groups: Vec<String>, ) -> ResolveFuture

The endpoint serving port of instance_id in account_id, or None when the instance has no running backing container. source_groups are the security groups of the load balancer the traffic comes from, so the instance’s security-group rules can admit it the way they admit the load balancer on AWS.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§