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