more readme updates

This commit is contained in:
Lucio Franco
2019-10-01 17:20:22 -04:00
parent 8aa4e2a790
commit bee8acd8c3
5 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -217,6 +217,6 @@ terms or conditions.
[`tonic-examples`]: https://github.com/hyperium/tonic/tree/master/tonic-examples
[`tonic-interop`]: https://github.com/hyperium/tonic/tree/master/tonic-interop
[Examples]: https://github.com/hyperium/tonic/tree/master/tonic-examples
[Website]: https://tokio.rs
[Website]: https://github.com/hyperium/tonic
[Docs]: https://docs.rs/tonic
[Chat]: https://discord.gg/6yGkFeN
+4 -1
View File
@@ -4,10 +4,13 @@ use std::future::Future;
use std::task::{Context, Poll};
use tower_service::Service;
/// Definition of the gRPC trait alias for [`tower_service::Service`].
/// Definition of the gRPC trait alias for [`tower_service`].
///
/// This trait enforces that all tower services provided to [`Grpc`] implements
/// the correct traits.
///
/// [`Grpc`]: ../client/struct.Grpc.html
/// [`tower_service`]: https://docs.rs/tower-service
pub trait GrpcService<ReqBody> {
/// Responses body given by the service.
type ResponseBody: Body + HttpBody;
+1
View File
@@ -11,6 +11,7 @@ mod prost;
pub use self::decode::Streaming;
pub(crate) use self::encode::{encode_client, encode_server};
#[cfg(feature = "prost")]
#[cfg_attr(docsrs, doc(cfg(feature = "prost")))]
pub use self::prost::ProstCodec;
pub use tokio_codec::{Decoder, Encoder};
+1
View File
@@ -13,6 +13,7 @@ use super::encoding::{Ascii, Binary, ValueEncoding};
/// `MetadataKey` is used as the [`MetadataMap`] key.
///
/// [`HeaderMap`]: struct.HeaderMap.html
/// [`MetadataMap`]: struct.MetadataMap.html
#[derive(Clone, Eq, PartialEq, Hash)]
#[repr(transparent)]
pub struct MetadataKey<VE: ValueEncoding> {
+1
View File
@@ -15,6 +15,7 @@ use std::{cmp, fmt};
/// `MetadataValue` is used as the [`MetadataMap`] value.
///
/// [`HeaderMap`]: struct.HeaderMap.html
/// [`MetadataMap`]: struct.MetadataMap.html
#[derive(Clone, Hash)]
#[repr(transparent)]
pub struct MetadataValue<VE: ValueEncoding> {