tcb/graph/middleware/
message_types.rs

1use super::dot::Dot;
2
3/**
4 * Enum that will be sent by the Middleware to the Client.
5 * */
6#[derive(Debug, Clone)]
7pub enum ClientMessage {
8    ///Empty variation
9    Empty,
10    ///Delivered message with its payload, dot and context
11    Delivery {
12        payload: Vec<u8>,
13        dot: Dot,
14        context: Vec<Dot>,
15    },
16    ///Stable message with its dot
17    Stable { dot: Dot },
18}