Skip to main content

EmbeddedChannelBackend

Trait EmbeddedChannelBackend 

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

Direct in-process channel backend used by embedded handles.

Required Methods§

Source

fn publish( &self, message: &dyn EmbeddedChannelMessage, ) -> Result<PressureResponse, SdkError>

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

§Errors

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§