A no_std, protocol-independent recovery registry: a recovery is a collection of chunks -- log entries or a snapshot's pieces -- and beggar accounts for which have moved, at both ends of a transfer, to completion or to a cancellation for the caller's own reason; its sessions, what each still lacks, and the finished ones it retains can be queried.
// Copyright (c) 2026 Umberto Gotti
// SPDX-License-Identifier: MIT
usecrate::chunk_set::ChunkSet;usecrate::session_id::SessionId;// A session's record: its name, how many chunks it holds, its two ends, and
// its chunk set -- the chunks accounted at this end.
#[derive(Debug, Clone, PartialEq, Eq)]pubstructSessionRecord{pubsession_id: SessionId,
pubchunks:u64,
pubsender:u64,
pubreceiver:u64,
pubchunk_set: ChunkSet,
}