1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! The client half of trillium-grpc.
//!
//! A generated `<Service>Client` wraps a [`trillium_client::Client`] and
//! exposes one async method per RPC. Each method calls through the [`Client`]
//! dispatch trait, which encodes the request, opens an HTTP/2 stream, and reads
//! the response and its `grpc-status` trailers back. Streaming responses arrive
//! as a [`ResponseStream`]. Per-client configuration (compression, deadlines)
//! lives on [`ServiceClientExt`].
pub use Client;
pub use ResponseStream;
pub use ;
/// Append a service-prefix segment to the client's base URL. Used by
/// generated `From<trillium_client::Client>` impls so that each generated
/// method only needs to specify its own RPC name as a relative path.
///
/// Mutates the base in place — `trillium_client::Client::base_mut` is
/// clone-on-write across clones of the same client, so this doesn't leak
/// to other holders.
///
/// Panics if the client has no base URL set.