beggar 0.6.0

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.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (c) 2026 Umberto Gotti
// SPDX-License-Identifier: MIT

// Why a command was refused. A refusal changes nothing but the receipt number.
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Rejection {
    NoChunks,
    SelfAddressed,
    NotAParty,
    OwnSession,
    RegistryFull { capacity: u64 },
    EmptyRun { first: u64, last: u64 },
    Misattributed { sender: u64, receiver: u64 },
    WrongSide,
    ChunkOutOfRange { first: u64, last: u64, chunks: u64 },
}