File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,15 @@ impl Op<SendMsgZc, MultiCQEFuture> {
3434}
3535
3636impl Completable for SendMsgZc {
37- type Output = io:: Result < usize > ;
37+ // type Output = io::Result<usize>;
3838
39- fn complete ( self , cqe : CqeResult ) -> Self :: Output {
39+ fn complete ( self , cqe : CqeResult ) -> ( libc :: msghdr , io :: Result < usize > ) {
4040 // Convert the operation result to `usize`
4141 let res = cqe. result . map ( |v| v as usize ) ;
42+
43+ let msghdr = self . msghdr ;
4244
43- res
45+ ( msghdr , res)
4446 }
4547}
4648
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ impl Socket {
147147 op. await
148148 }
149149
150- pub ( crate ) async fn sendmsg_zc ( & self , msghdr : & libc:: msghdr ) -> io:: Result < usize > {
150+ pub ( crate ) async fn sendmsg_zc ( & self , msghdr : & libc:: msghdr ) -> ( libc :: msghdr , io:: Result < usize > ) {
151151 let op = Op :: sendmsg_zc ( & self . fd , msghdr) . unwrap ( ) ;
152152 op. await
153153 }
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ impl UdpSocket {
220220 self . inner . send_zc ( buf) . await
221221 }
222222
223- pub async fn sendmsg_zc ( & self , msghdr : & libc:: msghdr ) -> io:: Result < usize > {
223+ pub async fn sendmsg_zc ( & self , msghdr : & libc:: msghdr ) -> ( libc :: msghdr , io:: Result < usize > ) {
224224 self . inner . sendmsg_zc ( msghdr) . await
225225 }
226226
You can’t perform that action at this time.
0 commit comments