Trait overclock::core::ChannelBuilder
source · [−]pub trait ChannelBuilder<C: Channel> {
fn build_channel<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = ActorResult<C>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Channel builder trait, to be implemented on the actor type
Required Methods
fn build_channel<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = ActorResult<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<C>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Implement how to build the channel for the corresponding actor