Searched refs:U (Results 1 – 7 of 7) sorted by relevance
| /tonic/examples/src/codec_buffers/ |
| H A D | common.rs | 18 pub struct SmallBufferCodec<T, U>(PhantomData<(T, U)>); 20 impl<T, U> Codec for SmallBufferCodec<T, U> 23 U: Message + Default + Send + 'static, 26 type Decode = U; 28 type Encoder = <ProstCodec<T, U> as Codec>::Encoder; 29 type Decoder = <ProstCodec<T, U> as Codec>::Decoder; 35 ProstCodec::<T, U>::raw_encoder(BufferSettings::new(512, 4096)) in encoder() 39 ProstCodec::<T, U>::raw_decoder(BufferSettings::new(512, 4096)) in decoder()
|
| /tonic/examples/src/json-codec/ |
| H A D | common.rs | 36 pub struct JsonDecoder<U>(PhantomData<U>); 38 impl<U: serde::de::DeserializeOwned> Decoder for JsonDecoder<U> { 39 type Item = U; 55 pub struct JsonCodec<T, U>(PhantomData<(T, U)>); 57 impl<T, U> Default for JsonCodec<T, U> { 63 impl<T, U> Codec for JsonCodec<T, U> 66 U: serde::de::DeserializeOwned + Send + 'static, 69 type Decode = U; 71 type Decoder = JsonDecoder<U>;
|
| /tonic/tonic/src/codec/ |
| H A D | prost.rs | 9 pub struct ProstCodec<T, U> { 10 _pd: PhantomData<(T, U)>, 13 impl<T, U> ProstCodec<T, U> { 21 impl<T, U> Default for ProstCodec<T, U> { 27 impl<T, U> ProstCodec<T, U> 51 impl<T, U> Codec for ProstCodec<T, U> 57 type Decode = U; 113 _pd: PhantomData<U>, 117 impl<U> ProstDecoder<U> { 127 impl<U: Message + Default> Decoder for ProstDecoder<U> { [all …]
|
| H A D | encode.rs | 23 struct EncodedBytes<T, U> { 25 source: Fuse<U>, 34 impl<T: Encoder, U: Stream> EncodedBytes<T, U> { 37 source: U, in new() argument 70 impl<T, U> Stream for EncodedBytes<T, U> 218 pub struct EncodeBody<T, U> { 220 inner: EncodedBytes<T, U>, 231 impl<T: Encoder, U: Stream> EncodeBody<T, U> { 236 source: U, in new_client() argument 260 source: U, in new_server() argument [all …]
|
| /tonic/tonic/src/ |
| H A D | response.rs | 93 pub fn map<F, U>(self, f: F) -> Response<U> in map() 95 F: FnOnce(T) -> U, in map() argument
|
| H A D | request.rs | 196 pub fn map<F, U>(self, f: F) -> Request<U> in map() 198 F: FnOnce(T) -> U, in map() argument
|
| /tonic/examples/data/gcp/ |
| H A D | roots.pem | 721 ba0F8PrVC8+a5fBQpIs7R6UjW3p6+DM/uO+Zl+MgwdYoic+U+7lF7eNAFxHUdPAL
|