diff options
author | Aidan Hobson Sayers <aidanhs@cantab.net> | 2016-09-16 00:29:16 +0100 |
---|---|---|
committer | Aidan Hobson Sayers <aidanhs@cantab.net> | 2016-09-16 00:30:59 +0100 |
commit | cbd99adf92917288cf9d11c50d33c029b10d6e54 (patch) | |
tree | fd2e8ee1a45cae3a92a044ed328562a6368fb3e5 | |
parent | c9cc927f27fa2fb475b772731446237345f1f270 (diff) | |
download | ssh2-rs-cbd99adf92917288cf9d11c50d33c029b10d6e54.zip |
Hide limit_read since it's a hack (see #34)
-rw-r--r-- | src/channel.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/channel.rs b/src/channel.rs index 00f8702..740ca71 100644 --- a/src/channel.rs +++ b/src/channel.rs @@ -288,7 +288,8 @@ impl<'sess> Channel<'sess> { } /// Artificially limit the number of bytes that will be read from this - /// channel. + /// channel. Hack intended for use by scp_recv only. + #[doc(hidden)] pub fn limit_read(&mut self, limit: u64) { self.read_limit = Some(limit); } |