Function thrussh::client::connect_future
[−]
[src]
pub fn connect_future<Addr: ToSocketAddrs, H: Handler, I, E, X: Future<Item = I, Error = E>, F: FnOnce(Connection<TcpStream, H>) -> X>(
handle: Handle,
addr: Addr,
config: Arc<Config>,
timeout: Option<Timeout>,
handler: H,
f: F
) -> Result<ConnectFuture<H, I, E, X, F>, Error>
Create a new client connection to the given address.