Skip to main content

IrreversibleEffect

Trait IrreversibleEffect 

Source
pub trait IrreversibleEffect: TypedEffect { }
Expand description

Marker: no safe automatic repetition and no logical undo — send the email, fire the charge without a key (wire class Effect::NonIdempotent; see the module docs for the deliberate naming reconciliation).

Execution requires an explicit ApprovalToken scoped to the effect’s derived id, presented to admit_irreversible. Unknown or undeclared effects belong here by default: the wire enum already defaults to NonIdempotent, and the typed kernel keeps that convention — what is not declared is never silently retried and never executes without approval.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§