Skip to main content

Module undoable_links

Module undoable_links 

Source
Expand description

Writes kept to be undone (issue #149): LinksUndoLog and the UndoableLinksDecorator that fills it, so a request that fails can be undone whole. The C# counterparts are LinksUndoLog<TLinkAddress> and UndoableLinksDecorator<TLinkAddress>.

Structs§

LinksUndoLog
The writes made to a store, kept to undo them: every change a write reports, and the names the links had before.
UndoableLinksDecorator
A store that keeps every write in a LinksUndoLog while recording, so a request that fails can be undone whole. The links server puts it under every session with permissions.

Functions§

keep_names_before_update
Keeps the names an update of index to (source target) may take: of the link, and of its usages too when it merges into an equal link and so is deleted.
usages_of
link and every link that uses it, directly or not, link first.

Type Aliases§

LinkChange
A change as a store reports it, None standing for no link: (None, link) is a creation, (link, None) a deletion.