File tree 1 file changed +16
-1
lines changed
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,22 @@ pub trait Body {
43
43
type Error ;
44
44
45
45
#[ allow( clippy:: type_complexity) ]
46
- /// Attempt to pull out the next data buffer of this stream.
46
+ /// Attempt to pull out the next frame of this stream.
47
+ ///
48
+ /// # Return value
49
+ ///
50
+ /// This function returns:
51
+ ///
52
+ /// - [`Poll::Pending`] if the next frame is not ready yet.
53
+ /// - [`Poll::Ready(Some(Ok(frame)))`] when the next frame is available.
54
+ /// - [`Poll::Ready(Some(Err(error)))`] when an error has been reached.
55
+ /// - [`Poll::Ready(None)`] means that all of the frames in this stream have been returned, and
56
+ /// that the end of the stream has been reached.
57
+ ///
58
+ /// If [`Poll::Ready(Some(Err(error)))`] is returned, this body should be discarded.
59
+ ///
60
+ /// Once the end of the stream is reached, implementations should continue to return
61
+ /// [`Poll::Ready(None)`].
47
62
fn poll_frame (
48
63
self : Pin < & mut Self > ,
49
64
cx : & mut Context < ' _ > ,
You can’t perform that action at this time.
0 commit comments