Mountain/IPC/Enhanced/MessageCompressor/CompressedBatch.rs
1
2//! Result envelope returned by `Compressor::Struct::flush_batch`.
3//! Carries the message count, original / compressed byte
4//! totals, the compressed bytes (`None` when below threshold),
5//! the `CompressionInfo::Struct`, and the flush timestamp.
6
7use serde::{Deserialize, Serialize};
8
9use crate::IPC::Enhanced::MessageCompressor::CompressionInfo;
10
11#[derive(Debug, Clone, Serialize, Deserialize)]
12pub struct Struct {
13 pub messages_count:usize,
14
15 pub original_size:usize,
16
17 pub compressed_size:usize,
18
19 pub compressed_data:Option<Vec<u8>>,
20
21 pub compression_info:CompressionInfo::Struct,
22
23 pub timestamp:u64,
24}