crafty-proto 0.2.2

Wire types and postcard codec shared across the crafty framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Multi-Raft wire envelopes (write-sharding-multi-raft).

use serde::{Deserialize, Serialize};

use crate::RaftRpc;

/// A peer RPC scoped to one Raft group on a multi-group node.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct GroupPeerEnvelope {
    /// Target Raft group id on the receiving node.
    pub group: u32,
    /// The inner consensus RPC.
    pub rpc: RaftRpc,
}