veecle-telemetry-server-protocol 0.1.0

Message definition for the WebSocket tracing data protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! `veecle-telemetry-server-protocol` contains message definition for the WebSocket tracing data protocol.

#![forbid(unsafe_code)]

use serde_derive::{Deserialize, Serialize};

/// Batched tracing data lines message.
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct TracingMessage {
    /// Tracing data lines.
    pub lines: Vec<String>,

    /// Total number of tracing data lines the server has.
    pub total: usize,

    /// Will be true if the Veecle OS program has exited.
    pub done: bool,
}