rust_kafka_like 0.1.0

A Kafka-like message broker in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::sync::atomic::AtomicU64;

#[derive(Debug, Clone, PartialEq)]
pub enum BrokerState {
    Follower,
    Candidate,
    Leader,
}

pub struct Term {
    pub current: AtomicU64,
    pub voted_for: Option<String>,
}