pub trait LaunchedSshHost: Send + Sync {
// Required methods
fn get_internal_ip(&self) -> String;
fn get_external_ip(&self) -> Option<String>;
fn get_cloud_provider(&self) -> String;
fn resource_result(&self) -> &Arc<ResourceResult>;
fn ssh_user(&self) -> &str;
// Provided methods
fn ssh_key_path(&self) -> PathBuf { ... }
fn server_config(&self, bind_type: &ServerStrategy) -> ServerBindConfig { ... }
fn open_ssh_session<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AsyncSession<TcpStream>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}