pub async fn connect<Buffer, Q, Auxiliary>(
    queue: Q,
    auxiliary: Auxiliary
) -> Result<WriteEnd<Buffer, Q, Auxiliary>, Error>where
    Buffer: ToBuffer + Send + Sync + 'static,
    Q: Queue,
Expand description

Initialize connection to remote sftp server and negotiate the sftp version.

User of this function must manually create ReadEnd and manually flush the buffer.

Cancel Safety

This function is not cancel safe.

After dropping the future, the connection would be in a undefined state.