summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorbold <bold@cryptoguru.com>2019-12-30 19:21:30 +0100
committerWez Furlong <wez@wezfurlong.org>2020-01-18 08:40:18 -0800
commitc5d2f48aa3eab3d7159b900a66bdc17ed8e29d4e (patch)
treee9ca7591ef683118b3b37a6446352184ebfe9b4b /src/error.rs
parent1e0f28946aeee4606376de8043a0c1da056fa05c (diff)
downloadssh2-rs-c5d2f48aa3eab3d7159b900a66bdc17ed8e29d4e.zip
add shutdown and close methods
This commit exposes the `shutdown` method of `Sft` and `close` method of `File` to free resources. Previously this was done synchronously and therefor not usable in async wrappers. Whith the methods exposed they can be polled until success. If successful a flag is set to notify the destructor that no resources need to be freed anymore. However, if resources were not cleaned up by calling `close` or `shutdown` the destructor will clean up synchronously.
Diffstat (limited to 'src/error.rs')
0 files changed, 0 insertions, 0 deletions