Trait ApprovalRouteAdapter
pub trait ApprovalRouteAdapter: Send + Sync {
// Required method
fn deliver(
&self,
kind: ApprovalNoticeKind,
route: &str,
notice: &GateNotice<'_>,
) -> Result<()>;
}Expand description
Deliver an approval notice to a named route (channel). The seam that lets approvals reach approvers beyond the originating channel (the cross-channel HITL gap) and that escalation uses to reach a distinct SECOND route on timeout. Delivery is best-effort: a route error must never clear or block a gate (the gate state is the source of truth; the route is only a notice).
Required Methods§
fn deliver( &self, kind: ApprovalNoticeKind, route: &str, notice: &GateNotice<'_>, ) -> Result<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".