Struct overclock::core::BoundedChannel
source · pub struct BoundedChannel<E, const C: usize> { /* private fields */ }
Expand description
A tokio bounded mpsc channel implementation
Trait Implementations§
source§impl<E: ShutdownEvent + 'static, const C: usize> Channel for BoundedChannel<E, C>
impl<E: ShutdownEvent + 'static, const C: usize> Channel for BoundedChannel<E, C>
§type Handle = BoundedHandle<E>
type Handle = BoundedHandle<E>
The sender half of the channel
§type Inbox = BoundedInbox<E>
type Inbox = BoundedInbox<E>
The receiver half of the channel
§type Metric = GenericGauge<AtomicI64>
type Metric = GenericGauge<AtomicI64>
Metric Collector
source§impl<E: ShutdownEvent + 'static, T, const C: usize> ChannelBuilder<BoundedChannel<E, C>> for Twhere
T: Send,
impl<E: ShutdownEvent + 'static, T, const C: usize> ChannelBuilder<BoundedChannel<E, C>> for Twhere
T: Send,
source§fn build_channel<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = ActorResult<BoundedChannel<E, C>>> + 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<BoundedChannel<E, C>>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Implement how to build the channel for the corresponding actor