massa_async_pool/
config.rs

1//! Copyright (c) 2022 MASSA LABS <info@massa.net>
2
3//! This file defines a configuration structure containing all settings for the asynchronous message pool system
4
5/// Asynchronous pool configuration
6#[derive(Debug, Clone)]
7pub struct AsyncPoolConfig {
8    /// max number of messages in the pool
9    pub max_length: u64,
10    /// max handler length
11    pub max_function_length: u16,
12    /// max handler params length
13    pub max_function_params_length: u64,
14    /// thread count
15    pub thread_count: u8,
16    /// max key length for message deserialization
17    pub max_key_length: u32,
18}