Trait hydro_deploy::LaunchedHost

source ·
pub trait LaunchedHost: Send + Sync {
    // Required methods
    fn server_config(&self, strategy: &ServerStrategy) -> ServerBindConfig;
    fn copy_binary<'life0, 'life1, 'async_trait>(
        &'life0 self,
        binary: &'life1 BuildOutput,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn launch_binary<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        id: String,
        binary: &'life1 BuildOutput,
        args: &'life2 [String],
        perf: Option<TracingOptions>,
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn LaunchedBinary>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn forward_port<'life0, 'life1, 'async_trait>(
        &'life0 self,
        addr: &'life1 SocketAddr,
    ) -> Pin<Box<dyn Future<Output = Result<SocketAddr>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn server_config(&self, strategy: &ServerStrategy) -> ServerBindConfig

Given a pre-selected network type, computes concrete information needed for a service to listen to network connections (such as the IP address to bind to).

source

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

source

fn launch_binary<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, id: String, binary: &'life1 BuildOutput, args: &'life2 [String], perf: Option<TracingOptions>, ) -> Pin<Box<dyn Future<Output = Result<Box<dyn LaunchedBinary>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

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

Implementors§