File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -307,6 +307,14 @@ impl Read for &TcpStream {
307
307
) -> Poll < io:: Result < usize > > {
308
308
Pin :: new ( & mut & * self . watcher ) . poll_read ( cx, buf)
309
309
}
310
+
311
+ fn poll_read_vectored (
312
+ self : Pin < & mut Self > ,
313
+ cx : & mut Context < ' _ > ,
314
+ bufs : & mut [ IoSliceMut < ' _ > ] ,
315
+ ) -> Poll < io:: Result < usize > > {
316
+ Pin :: new ( & mut & * self . watcher ) . poll_read_vectored ( cx, bufs)
317
+ }
310
318
}
311
319
312
320
impl Write for TcpStream {
@@ -344,6 +352,14 @@ impl Write for &TcpStream {
344
352
Pin :: new ( & mut & * self . watcher ) . poll_write ( cx, buf)
345
353
}
346
354
355
+ fn poll_write_vectored (
356
+ self : Pin < & mut Self > ,
357
+ cx : & mut Context < ' _ > ,
358
+ bufs : & [ IoSlice < ' _ > ] ,
359
+ ) -> Poll < io:: Result < usize > > {
360
+ Pin :: new ( & mut & * self . watcher ) . poll_write_vectored ( cx, bufs)
361
+ }
362
+
347
363
fn poll_flush ( self : Pin < & mut Self > , cx : & mut Context < ' _ > ) -> Poll < io:: Result < ( ) > > {
348
364
Pin :: new ( & mut & * self . watcher ) . poll_flush ( cx)
349
365
}
You can’t perform that action at this time.
0 commit comments