Skip to main content

Module mode

Module mode 

Source
Expand description

The result a coordination mode hands back to the kernel.

The Mode trait itself lives in macp-modes (behavior), but this enum (data) lives in core because crate::session::Session::apply_mode_response consumes it — keeping it here avoids a macp-core -> macp-modes cycle.

Structs§

MessageContext
Kernel-supplied context accompanying an accepted-for-processing message.

Enums§

ModeResponse
The result of a Mode processing a message. The runtime applies this response to mutate session state. #[non_exhaustive]: downstream wildcard arms must treat unknown responses as no-ops or rejections, never as resolutions.