You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/net/tcp/split_owned.rs
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,9 @@ impl OwnedReadHalf {
37
37
reunite(self, other)
38
38
}
39
39
40
-
/// Attempt to receive data on the socket, without removing that data from the queue, registering the current task for wakeup if data is not yet available.
40
+
/// Attempts to receive data on the socket, without removing that data from
41
+
/// the queue, registering the current task for wakeup if data is not yet
42
+
/// available.
41
43
pubfnpoll_peek(
42
44
mutself:Pin<&mutSelf>,
43
45
cx:&mutContext<'_>,
@@ -46,6 +48,11 @@ impl OwnedReadHalf {
46
48
Pin::new(&mutself.inner).poll_peek(cx, buf)
47
49
}
48
50
51
+
/// Receives data on the socket from the remote address to which it is
52
+
/// connected, without removing that data from the queue. On success,
0 commit comments