diff --git a/src/server/conn/http2.rs b/src/server/conn/http2.rs index 4e685453da..f08536c7f1 100644 --- a/src/server/conn/http2.rs +++ b/src/server/conn/http2.rs @@ -195,6 +195,9 @@ impl Builder { /// /// # Cargo Feature /// + /// Requires the `runtime` cargo feature to be enabled. + #[cfg(feature = "runtime")] + #[cfg_attr(docsrs, doc(cfg(feature = "runtime")))] pub fn keep_alive_interval(&mut self, interval: impl Into>) -> &mut Self { self.h2_builder.keep_alive_interval = interval.into(); self @@ -209,6 +212,9 @@ impl Builder { /// /// # Cargo Feature /// + /// Requires the `runtime` cargo feature to be enabled. + #[cfg(feature = "runtime")] + #[cfg_attr(docsrs, doc(cfg(feature = "runtime")))] pub fn keep_alive_timeout(&mut self, timeout: Duration) -> &mut Self { self.h2_builder.keep_alive_timeout = timeout; self