commonware-utils 2026.3.0

Leverage common functionality across multiple primitives.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Errors that can occur in Historical bitmap operations.
#[derive(Clone, Debug, PartialEq, Eq, thiserror::Error)]
pub enum Error {
    /// Commit numbers must be strictly monotonically increasing.
    #[error("commit number ({attempted}) <= previous commit ({previous})")]
    NonMonotonicCommit { previous: u64, attempted: u64 },

    /// Commit number u64::MAX is reserved and cannot be used.
    #[error("commit number u64::MAX is reserved and cannot be used")]
    ReservedCommitNumber,

    /// Error from the underlying Prunable bitmap.
    #[error("prunable error: {0}")]
    Prunable(#[from] crate::bitmap::prunable::Error),
}