pacifica-rs 1.0.0

rust implementation of PacificA: Replication in Log-Based Distributed Storage Systems
1
2
3
4
5
6
7
8
9
10
11
12
use anyerror::AnyError;
use thiserror::Error;

#[derive(PartialEq, Eq)]
#[derive(Debug, Error)]
pub enum OptionError {
    #[error("ParseError: {source} while parsing ({args:?})")]
    ParseError { source: AnyError, args: Vec<String> },

    #[error("{reason} when parsing '{parse_str}'")]
    InvalidStr { reason: String, parse_str: String },
}