pub fn validate_message(
session: &Session,
env: &Envelope,
mode: &dyn Mode,
) -> Result<ModeResponse, MacpError>Expand description
Mode-dependent validation: sender authorization + mode rules. Pure — returns
the ModeResponse to apply and mutates nothing. Call only after
check_preconditions returns Precheck::Proceed.