pub trait Request:
Serialize
+ DeserializeOwned
+ Validate
+ Sealed {
type Action: ActionName;
type Response: Response;
const ACTION: Self::Action;
const KIND: MessageKind;
const ORIGIN: Origin;
}Expand description
A request payload.
Required Associated Constants§
Sourceconst KIND: MessageKind
const KIND: MessageKind
CALL or SEND.
Required Associated Types§
Sourcetype Action: ActionName
type Action: ActionName
This version’s action enum.
Sourcetype Response: Response
type Response: Response
The matching response payload, or NoResponse for a SEND.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".