pub async fn connect<Buffer: ToBuffer + Send + Sync + 'static>(
    reader: PipeRead,
    writer: PipeWrite
) -> Result<(WriteEnd<Buffer>, ReadEnd<Buffer>, Extensions), Error>
Expand description

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

Cancel Safety

This function is not cancel safe.

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