Module deletion
Expand description
Who may delete a message, how a deletion is recorded and applied, and how an unsent own message is cancelled. Every deletion rule lives here.
Structs§
- Archived
Self Deletions - An archive’s
Publisheddeletion messages: for each target, group and deleter, the earliest one’s time and id. One entry per such triple, so memory grows with the archive’s deletions, not its messages, and each message costs constant time. A pre-8.0 archive has no marks or records: these restore its self-deletions, and only for a message the same import creates. - Discard
Events - Discards every event. An archive import emits no per-row event;
archive.restoredreports it once.
Enums§
- Source
- Where a deletion message came from.
Functions§
- apply_
deletion - Record a deletion message and mark its stored target. Idempotent. Returns true when it stored a record or marked a row.
- apply_
stored_ records - Import only: mark a row from its earliest authorized record from the topic. An archived record or deletion message never marks a row by itself; an archived row is marked only by its own field 19, at its insert. Receive never needs this: the topic orders a target before its deletion. Returns true when it marked the row.
- import_
record - Store an archive’s record, then apply the topic’s records to a stored target. Returns true when it stored a record or marked a row.