Struct overclock::core::IntervalChannel
source · [−]pub struct IntervalChannel<const I: u64>;
Expand description
A tokio IntervalStream channel implementation, which emit Instants
Trait Implementations
sourceimpl<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
sourceimpl<T, const I: u64> ChannelBuilder<IntervalChannel<I>> for T where
T: Send,
impl<T, const I: u64> ChannelBuilder<IntervalChannel<I>> for T where
T: Send,
sourcefn 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
Auto Trait Implementations
impl<const I: u64> RefUnwindSafe for IntervalChannel<I>
impl<const I: u64> Send for IntervalChannel<I>
impl<const I: u64> Sync for IntervalChannel<I>
impl<const I: u64> Unpin for IntervalChannel<I>
impl<const I: u64> UnwindSafe for IntervalChannel<I>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more