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.
Publish only. There is no subscribe or deliver method here and never has
been, which is why ChannelHandle::subscribe on an
EmbeddedChannelHandle has no delivery path to reach and refuses instead
of returning a stream nothing can feed.
Required Methods§
Sourcefn publish(
&self,
message: &dyn EmbeddedChannelMessage,
) -> Result<PressureResponse, SdkError>
fn publish( &self, message: &dyn EmbeddedChannelMessage, ) -> Result<PressureResponse, SdkError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".