summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index db3591a..dd02a67 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -289,3 +289,15 @@ impl From<HostKeyType> for KnownHostKeyFormat {
}
}
}
+
+/// How to handle extended data streams, such as stderr
+#[derive(Copy, Clone, Debug)]
+pub enum ExtendedData {
+ /// Queue extended data for eventual reading
+ Normal = raw::LIBSSH2_CHANNEL_EXTENDED_DATA_NORMAL as isize,
+ /// Treat extended data and ordinary data the same. Merge all substreams such that calls to
+ /// read will pull from all substreams on a first-in/first-out basis.
+ Merge = raw::LIBSSH2_CHANNEL_EXTENDED_DATA_MERGE as isize,
+ /// Discard all extended data as it arrives.
+ Ignore = raw::LIBSSH2_CHANNEL_EXTENDED_DATA_IGNORE as isize,
+}