Start writing API docs (#187)

This focuses mostly on the server module.
This commit is contained in:
Carl Lerche
2017-12-18 14:27:30 -08:00
committed by GitHub
parent 1ea9a8fc7e
commit 1a0b1eec2b
4 changed files with 655 additions and 31 deletions

View File

@@ -26,7 +26,7 @@ pub struct ReleaseCapacity {
inner: proto::OpaqueStreamRef,
}
// ===== impl Stream =====
// ===== impl SendStream =====
impl<B: IntoBuf> SendStream<B> {
pub(crate) fn new(inner: proto::StreamRef<B::Buf>) -> Self {
@@ -68,7 +68,7 @@ impl<B: IntoBuf> SendStream<B> {
}
}
// ===== impl Body =====
// ===== impl RecvStream =====
impl RecvStream {
pub(crate) fn new(inner: ReleaseCapacity) -> Self {