-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Lack of documentation on Read trait #3649
Copy link
Copy link
Closed
Labels
A-docsArea: documentation.Area: documentation.A-rtArea: runtime traits/utilsArea: runtime traits/utilsE-easyEffort: easy. A task that would be a great starting point for a new contributor.Effort: easy. A task that would be a great starting point for a new contributor.
Metadata
Metadata
Assignees
Labels
A-docsArea: documentation.Area: documentation.A-rtArea: runtime traits/utilsArea: runtime traits/utilsE-easyEffort: easy. A task that would be a great starting point for a new contributor.Effort: easy. A task that would be a great starting point for a new contributor.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I have come to the need of implementing
hyper::rt::Readon a custom struct. It seems to me that its documentation has been copy-pasted from tokio'sAsyncRead, except it's outdated since the signature has been changed. For some reason not stated in the doc, aReadBufCursoris used instead of the originalReadBuf. Now, I simply couldn't understand from the doc how I was supposed to implementRead, consideringReadBufCursoronly has 2 unsafe methods and isn't too-well documented either. I would greatly appreciate further official guidance on implementing the Read trait. Thank you for making hyper