pub fn tick_stream(&self) -> Pin<Box<dyn Stream<Item = Message> + Send>> {
        match self.interval {
            None => stream::empty().boxed(),
            Some(interval) => IntervalStream::new(time::interval(interval))
                .map(|_| Message::ScrapeMetrics)
                .boxed(),
        }
    }
/// Produces a stream that yields a `Message::ScrapeMetrics` at the desired
/// scrape frequency.
///
/// If the scraper is disabled, this stream will yield no items.
Produces a stream that yields a `Message::ScrapeMetrics` at the desired
scrape frequency.

If the scraper is disabled, this stream will yield no items.
Produces a stream that yields a ` Message :: ScrapeMetrics ` at the desired scrape frequency . If the scraper is disabled this stream will yield no items .
pub fn tick_stream(&self) -> Pin<Box<dyn Stream<Item = Message> + Send>> {
        match self.interval {
            None => stream::empty().boxed(),
            Some(interval) => IntervalStream::new(time::interval(interval))
                .map(|_| Message::ScrapeMetrics)
                .boxed(),
        }
    }
pub fn tick_stream ( & self ) -> Pin < Box < dyn Stream < Item = Message > + Send > > { match self . interval { None => stream :: empty ( ) . boxed ( ) , Some ( interval ) => IntervalStream :: new ( time :: interval ( interval ) ) . map ( | _ | Message :: ScrapeMetrics ) . boxed ( ) , } }
Produces a stream that yields a `Message::ScrapeMetrics` at the desired
scrape frequency.
Produces a stream that yields a ` Message :: ScrapeMetrics ` at the desired scrape frequency .
&self
&self