Skip to main content

EmbeddedConversationBackend

Trait EmbeddedConversationBackend 

Source
pub trait EmbeddedConversationBackend:
    Debug
    + Send
    + Sync {
    // Required method
    fn send(
        &self,
        message: &dyn EmbeddedConversationMessage,
    ) -> Result<(), SdkError>;
}
Expand description

Direct in-process conversation backend used by embedded handles.

Required Methods§

Source

fn send( &self, message: &dyn EmbeddedConversationMessage, ) -> Result<(), SdkError>

Sends a typed message reference without protocol framing or wire encoding.

§Errors

Returns SdkError if the in-process backend rejects the send attempt.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§