Skip to main content

give_ids

Function give_ids 

Source
fn give_ids(
    store: &Store,
    file: &str,
    path: &Path,
    memory: &Memory,
    history: &Path,
    now_ms: i64,
) -> Result<Vec<Placed>, String>
Expand description

Each element of the lists of path that format 2 names by ids is given one in the file, once: the element that stands for a format-1 entry (what was last sent or received under it) the id derived from that entry (derived), as every device holding it derives it; another (a second session at one start, a second money line alike, a preset an older Sioul never carried) an id of its own, drawn at random, since it was never shared. Two elements holding one id (two devices changed one element apart while they wrote format 1): the one holding the greatest text keeps it, the other takes the id derived from its own format-1 entry. A preset’s id is put where splits and lines named it by its place (#3). Written through the file’s lock, the file as it was kept first (history). Returns every element of those lists.