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§
Sourcefn 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,
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