pub trait Message<'a>: SchemaValue<'a> + StructSchema {
type Response<'b>: OptionalValue<'b>;
type Error: HandlerCode;
type Codec: Codec + Default;
const SELECTOR: MessageSelector;
}
Expand description
The Message trait for invoking messages dynamically.
Required Associated Constants§
Sourceconst SELECTOR: MessageSelector
const SELECTOR: MessageSelector
The message selector.
Required Associated Types§
Sourcetype Response<'b>: OptionalValue<'b>
type Response<'b>: OptionalValue<'b>
The optional response type.
Sourcetype Error: HandlerCode
type Error: HandlerCode
The optional error type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.