snowball 0.1.3

Generic implementation of Snowball consensus algorithm
Documentation
1
2
3
4
5
6
7
8
9
use std::fmt::Debug;

pub trait Error: Debug {
    fn source(&self) -> String;
    fn code(&self) -> u64;
    fn module(&self) -> String;

    fn new(source: String, code: u64, module: String) -> Self;
}