summaryrefslogtreecommitdiff
path: root/src/channel.rs
diff options
context:
space:
mode:
authorAidan Hobson Sayers <aidanhs@cantab.net>2016-09-16 00:29:16 +0100
committerAidan Hobson Sayers <aidanhs@cantab.net>2016-09-16 00:30:59 +0100
commitcbd99adf92917288cf9d11c50d33c029b10d6e54 (patch)
treefd2e8ee1a45cae3a92a044ed328562a6368fb3e5 /src/channel.rs
parentc9cc927f27fa2fb475b772731446237345f1f270 (diff)
downloadssh2-rs-cbd99adf92917288cf9d11c50d33c029b10d6e54.zip
Hide limit_read since it's a hack (see #34)
Diffstat (limited to 'src/channel.rs')
-rw-r--r--src/channel.rs3
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);
}