We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc54bc0 commit 4d5fe9aCopy full SHA for 4d5fe9a
src/stream.rs
@@ -98,4 +98,24 @@ impl<T: rt::Write + rt::Read + Unpin> rt::Write for MaybeHttpsStream<T> {
98
Self::Https(s) => Pin::new(s).poll_shutdown(cx),
99
}
100
101
+
102
+ #[inline]
103
+ fn is_write_vectored(&self) -> bool {
104
+ match self {
105
+ Self::Http(s) => s.is_write_vectored(),
106
+ Self::Https(s) => s.is_write_vectored(),
107
+ }
108
109
110
111
+ fn poll_write_vectored(
112
+ self: Pin<&mut Self>,
113
+ cx: &mut Context<'_>,
114
+ bufs: &[io::IoSlice<'_>],
115
+ ) -> Poll<Result<usize, io::Error>> {
116
+ match Pin::get_mut(self) {
117
+ Self::Http(s) => Pin::new(s).poll_write_vectored(cx, bufs),
118
+ Self::Https(s) => Pin::new(s).poll_write_vectored(cx, bufs),
119
120
121
0 commit comments