Skip to main content

Module lifecycle

Module lifecycle 

Source
Expand description

File apply and unmanage with rollback records.

Re-exports§

pub use crate::adoption::Boundary;
pub use crate::adoption::Event;

Structs§

Approval
Opaque and not deserializable. The caller must present and explicitly approve the plan.
RemovalAcknowledgement
Separate caller confirmation, not preview deserialization or a generic approval flag.

Functions§

execute
Returns None on an entirely correct/empty apply; no transaction/backups are created. One approved request is one transaction. Atomic publications are NOT global atomicity.
history
Content-free retained history/diagnosis across schema-1 and schema-2 transactions. This reads private metadata/backups only, never live source content; it creates nothing.
rollback
Explicit/restartable guarded rollback, including completed schema-2 transactions. Schema-1 adoption transactions remain recoverable using adoption::rollback.