Skip to main content

EmbeddedChannelMessage

Trait EmbeddedChannelMessage 

Source
pub trait EmbeddedChannelMessage {
    // Required methods
    fn schema_metadata(&self) -> SchemaMetadata;
    fn type_name(&self) -> &'static str;
}
Expand description

Type-erased view of a typed channel message passed to an embedded backend.

The embedded SDK path hands this reference directly to the in-process backend; it never asks serde to produce bytes, protocol envelopes, or wire frames.

Required Methods§

Source

fn schema_metadata(&self) -> SchemaMetadata

Returns the compile-time schema metadata declared by the message type.

Source

fn type_name(&self) -> &'static str

Returns the Rust type name used for diagnostics and backend routing.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§