diff options
author | bold <bold@cryptoguru.com> | 2019-12-30 19:21:30 +0100 |
---|---|---|
committer | Wez Furlong <wez@wezfurlong.org> | 2020-01-18 08:40:18 -0800 |
commit | c5d2f48aa3eab3d7159b900a66bdc17ed8e29d4e (patch) | |
tree | e9ca7591ef683118b3b37a6446352184ebfe9b4b /src/error.rs | |
parent | 1e0f28946aeee4606376de8043a0c1da056fa05c (diff) | |
download | ssh2-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