Skip to main content

Mountain/IPC/Enhanced/MessageCompressor/
CompressedBatch.rs

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