[][src]Function thrussh::client::connect

pub fn connect<Addr: ToSocketAddrs, H: Handler, I, E, X: Future<Item = I, Error = E>, F: FnOnce(Connection<TcpStream, H>) -> X>(
    addr: Addr,
    config: Arc<Config>,
    timeout: Option<Timeout>,
    handler: H,
    f: F
) -> Result<I, HandlerError<E>>

Create a new client connection to the given address.