oa_gateway_owp::session

Function handle_violations

Source
async fn handle_violations(
    violations: &[Violation],
    validate: Mode,
    adapter_id: &impl Display,
    local_sid: &str,
    forward_tx: &Sender<ServerOp>,
    logged: &mut bool,
    wording: ViolationWording,
) -> Verdict
Expand description

Applies validate’s policy to violations: in Reject mode, sends a -ERR and reports Verdict::Drop; in Warn mode, only logs. Either way the warning is logged once per subscription, via logged.