Skip to main content

DispatchConversationFactory

Trait DispatchConversationFactory 

Source
pub trait DispatchConversationFactory:
    Debug
    + Send
    + Sync {
    // Required method
    fn open(
        &self,
        workflow_id: &str,
        channel_name: &ChannelName,
        conversation_id: &str,
    ) -> Result<Box<dyn DispatchConversation>, AionSurfaceError>;
}
Expand description

Opens dispatch conversations on task queue channels.

Required Methods§

Source

fn open( &self, workflow_id: &str, channel_name: &ChannelName, conversation_id: &str, ) -> Result<Box<dyn DispatchConversation>, AionSurfaceError>

Opens a dispatch conversation boundary for channel_name.

§Errors

Returns an error if the conversation cannot be opened.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§