diff --git a/tokio/src/time/interval.rs b/tokio/src/time/interval.rs index 601fc7f8b..6a97f59b5 100644 --- a/tokio/src/time/interval.rs +++ b/tokio/src/time/interval.rs @@ -107,6 +107,11 @@ pub fn interval_at(start: Instant, period: Duration) -> Interval { } /// Stream returned by [`interval`](interval) and [`interval_at`](interval_at). +/// +/// This type only implements the [`Stream`] trait if the "stream" feature is +/// enabled. +/// +/// [`Stream`]: trait@crate::stream::Stream #[derive(Debug)] pub struct Interval { /// Future that completes the next time the `Interval` yields a value.