Sha256: e711c65da155ef73e567125c0c9db33b2f511982a0c0a6b4f3b37c2d87c791a6
Contents?: true
Size: 654 Bytes
Versions: 30
Compression:
Stored size: 654 Bytes
Contents
//! This file contains mocks of the metrics types used in the I/O driver. //! //! The reason these mocks don't live in `src/runtime/mock.rs` is because //! these need to be available in the case when `net` is enabled but //! `rt` is not. cfg_not_rt_and_metrics_and_net! { #[derive(Default)] pub(crate) struct IoDriverMetrics {} impl IoDriverMetrics { pub(crate) fn incr_fd_count(&self) {} pub(crate) fn dec_fd_count(&self) {} pub(crate) fn incr_ready_count_by(&self, _amt: u64) {} } } cfg_net! { cfg_rt! { cfg_metrics! { pub(crate) use crate::runtime::IoDriverMetrics; } } }
Version data entries
30 entries across 30 versions & 1 rubygems