raftify 0.1.82

Experimental High level Raft framework
Documentation
1
2
3
4
5
6
7
8
use crate::Result;

pub trait AbstractLogEntry: Clone + Send + Sync {
    fn encode(&self) -> Result<Vec<u8>>;
    fn decode(bytes: &[u8]) -> Result<Self>
    where
        Self: Sized;
}