more readme updates
This commit is contained in:
@@ -217,6 +217,6 @@ terms or conditions.
|
|||||||
[`tonic-examples`]: https://github.com/hyperium/tonic/tree/master/tonic-examples
|
[`tonic-examples`]: https://github.com/hyperium/tonic/tree/master/tonic-examples
|
||||||
[`tonic-interop`]: https://github.com/hyperium/tonic/tree/master/tonic-interop
|
[`tonic-interop`]: https://github.com/hyperium/tonic/tree/master/tonic-interop
|
||||||
[Examples]: https://github.com/hyperium/tonic/tree/master/tonic-examples
|
[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
|
[Docs]: https://docs.rs/tonic
|
||||||
[Chat]: https://discord.gg/6yGkFeN
|
[Chat]: https://discord.gg/6yGkFeN
|
||||||
|
|||||||
@@ -4,10 +4,13 @@ use std::future::Future;
|
|||||||
use std::task::{Context, Poll};
|
use std::task::{Context, Poll};
|
||||||
use tower_service::Service;
|
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
|
/// This trait enforces that all tower services provided to [`Grpc`] implements
|
||||||
/// the correct traits.
|
/// the correct traits.
|
||||||
|
///
|
||||||
|
/// [`Grpc`]: ../client/struct.Grpc.html
|
||||||
|
/// [`tower_service`]: https://docs.rs/tower-service
|
||||||
pub trait GrpcService<ReqBody> {
|
pub trait GrpcService<ReqBody> {
|
||||||
/// Responses body given by the service.
|
/// Responses body given by the service.
|
||||||
type ResponseBody: Body + HttpBody;
|
type ResponseBody: Body + HttpBody;
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ mod prost;
|
|||||||
pub use self::decode::Streaming;
|
pub use self::decode::Streaming;
|
||||||
pub(crate) use self::encode::{encode_client, encode_server};
|
pub(crate) use self::encode::{encode_client, encode_server};
|
||||||
#[cfg(feature = "prost")]
|
#[cfg(feature = "prost")]
|
||||||
|
#[cfg_attr(docsrs, doc(cfg(feature = "prost")))]
|
||||||
pub use self::prost::ProstCodec;
|
pub use self::prost::ProstCodec;
|
||||||
pub use tokio_codec::{Decoder, Encoder};
|
pub use tokio_codec::{Decoder, Encoder};
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ use super::encoding::{Ascii, Binary, ValueEncoding};
|
|||||||
/// `MetadataKey` is used as the [`MetadataMap`] key.
|
/// `MetadataKey` is used as the [`MetadataMap`] key.
|
||||||
///
|
///
|
||||||
/// [`HeaderMap`]: struct.HeaderMap.html
|
/// [`HeaderMap`]: struct.HeaderMap.html
|
||||||
|
/// [`MetadataMap`]: struct.MetadataMap.html
|
||||||
#[derive(Clone, Eq, PartialEq, Hash)]
|
#[derive(Clone, Eq, PartialEq, Hash)]
|
||||||
#[repr(transparent)]
|
#[repr(transparent)]
|
||||||
pub struct MetadataKey<VE: ValueEncoding> {
|
pub struct MetadataKey<VE: ValueEncoding> {
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ use std::{cmp, fmt};
|
|||||||
/// `MetadataValue` is used as the [`MetadataMap`] value.
|
/// `MetadataValue` is used as the [`MetadataMap`] value.
|
||||||
///
|
///
|
||||||
/// [`HeaderMap`]: struct.HeaderMap.html
|
/// [`HeaderMap`]: struct.HeaderMap.html
|
||||||
|
/// [`MetadataMap`]: struct.MetadataMap.html
|
||||||
#[derive(Clone, Hash)]
|
#[derive(Clone, Hash)]
|
||||||
#[repr(transparent)]
|
#[repr(transparent)]
|
||||||
pub struct MetadataValue<VE: ValueEncoding> {
|
pub struct MetadataValue<VE: ValueEncoding> {
|
||||||
|
|||||||
Reference in New Issue
Block a user