Struct overclock::core::IntervalChannel
source · pub struct IntervalChannel<const I: u64>;
Expand description
A tokio IntervalStream channel implementation, which emit Instants
Trait Implementations§
source§impl<const I: u64> Channel for IntervalChannel<I>
impl<const I: u64> Channel for IntervalChannel<I>
§type Handle = IntervalHandle
type Handle = IntervalHandle
The sender half of the channel
§type Inbox = Abortable<IntervalStream>
type Inbox = Abortable<IntervalStream>
The receiver half of the channel
§type Metric = GenericGauge<AtomicI64>
type Metric = GenericGauge<AtomicI64>
Metric Collector
source§impl<T, const I: u64> ChannelBuilder<IntervalChannel<I>> for Twhere
T: Send,
impl<T, const I: u64> ChannelBuilder<IntervalChannel<I>> for Twhere
T: Send,
source§fn build_channel<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = ActorResult<IntervalChannel<I>>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn build_channel<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = ActorResult<IntervalChannel<I>>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Implement how to build the channel for the corresponding actor