veecle_telemetry_server_protocol/lib.rs
1//! `veecle-telemetry-server-protocol` contains message definition for the WebSocket tracing data protocol.
2
3#![forbid(unsafe_code)]
4
5use serde_derive::{Deserialize, Serialize};
6
7/// Batched tracing data lines message.
8#[derive(Clone, Debug, Serialize, Deserialize)]
9pub struct TracingMessage {
10 /// Tracing data lines.
11 pub lines: Vec<String>,
12
13 /// Total number of tracing data lines the server has.
14 pub total: usize,
15
16 /// Will be true if the Veecle OS program has exited.
17 pub done: bool,
18}