We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6c77d1 commit 7ea854bCopy full SHA for 7ea854b
tonic/src/transport/channel/endpoint.rs
@@ -113,6 +113,14 @@ impl Endpoint {
113
/// # let mut builder = Endpoint::from_static("https://example.com");
114
/// builder.timeout(Duration::from_secs(5));
115
/// ```
116
+ ///
117
+ /// # Notes
118
119
+ /// This does **not** set the timeout metadata (`grpc-timeout` header) on
120
+ /// the request, meaning the server will not be informed of this timeout,
121
+ /// for that use [`Request::set_timeout`].
122
123
+ /// [`Request::set_timeout`]: crate::Request::set_timeout
124
pub fn timeout(self, dur: Duration) -> Self {
125
Endpoint {
126
timeout: Some(dur),
0 commit comments