summaryrefslogtreecommitdiff
path: root/src/sftp.rs
AgeCommit message (Collapse)Author
2020-01-18add shutdown and close methodsbold
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.
2020-01-11let compiler figure out the correct typebold
2020-01-11cargo fmtbold
2020-01-11let compiler figure out the correct typebold
2020-01-11simplify unwrap_or_else argumentbold
2020-01-11make retrieving last session error privatebold
2020-01-11return correct errorsbold
2019-10-20Make Session be `Send` againWez Furlong
Refs: https://github.com/alexcrichton/ssh2-rs/issues/137
2019-09-15replace use of try! with ? operatorWez Furlong
This fixes the CI build with nightly, as we have deny(warnings) enabled.
2019-07-29Channel, Sftp no longer borrow SessionWez Furlong
Instead the internal session is kept alive via Rc Refs: https://github.com/alexcrichton/ssh2-rs/issues/53
2019-07-29cargo fmtWez Furlong
No functional changes, just formatting
2018-12-14Use bitflags 1.X (#97)Jonas Schievink
Also removes the reexported flags from the crate root, since they're now assoc. consts and it would be a bit weird to reexport those. (breaking change)
2016-11-08Bump dep on bitflagsAlex Crichton
2016-08-17Add checks for file typesVeselkov Sergey
2016-05-26ssh2::FileStat should derive Eq/PartialEq and Clonesp3d
Copy might constrain the implementation, but these are useful and shouldn't cause any difficulty in the future.
2016-04-04Fix spelling errorRichard Dodd
2016-04-04Allow debug print of FileStatderekdreery
2015-04-02Update for rust betaAlex Crichton
2015-04-02Update to rust masterAlex Crichton
2015-03-30Remove the unsafe destructor featureAlex Crichton
2015-03-25Update to rust masterAlex Crichton
2015-03-22Bump to 0.2.3Alex Crichton
2015-03-12Bind unlink for SFTP filesAlex Crichton
Closes #11
2015-02-23Update to std::ioAlex Crichton
2015-02-20Bump versions and update to masterAlex Crichton
2015-01-28Update to rust masterAlex Crichton
2015-01-23Update to rust masterAlex Crichton
2015-01-18Tweak impls/apisAlex Crichton
Lots of changes, but largely cosmetic, reorganization, or internal refactorings.
2015-01-17Update to rust masterAlex Crichton
2015-01-09Update to rust masterAlex Crichton
2015-01-03Update to rust masterAlex Crichton
2014-12-15Update to rust masterAlex Crichton
2014-12-12Update to rust masterAlex Crichton
2014-11-18Update to rust masterAlex Crichton
2014-11-07Update to rust masterAlex Crichton
2014-10-31Update to rust masterAlex Crichton
2014-10-12Update to rust masterAlex Crichton
2014-10-09Update to rust masterAlex Crichton
2014-09-19Beef up documentationAlex Crichton
2014-09-19Bind SFTP functionality.Alex Crichton
2014-09-19Start SFTP bindingsAlex Crichton