pub trait ChannelBuilder<C: Channel> {
    // Required method
    fn build_channel<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = ActorResult<C>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Channel builder trait, to be implemented on the actor type

Required Methods§

source

fn build_channel<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = ActorResult<C>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implement how to build the channel for the corresponding actor

Implementors§

source§

impl<E: Send + 'static, T> ChannelBuilder<AbortableUnboundedChannel<E>> for Twhere T: Send,

source§

impl<E: Send + 'static, T, const C: usize> ChannelBuilder<AbortableBoundedChannel<E, C>> for Twhere T: Send,

source§

impl<E: ShutdownEvent + 'static, T> ChannelBuilder<UnboundedChannel<E>> for Twhere T: Send,

source§

impl<E: ShutdownEvent + 'static, T, const C: usize> ChannelBuilder<BoundedChannel<E, C>> for Twhere T: Send,

source§

impl<T> ChannelBuilder<NullChannel> for Twhere T: Send,

source§

impl<T, C, B: Send + 'static + Sync> ChannelBuilder<Marker<C, B>> for Twhere T: Send + ChannelBuilder<C>, C: Channel,

source§

impl<T, const I: u64> ChannelBuilder<IntervalChannel<I>> for Twhere T: Send,