commonware_broadcast/buffered/config.rs
1use commonware_codec::Config as CodecCfg;
2use commonware_utils::Array;
3
4/// Configuration for the [`Engine`](super::Engine).
5pub struct Config<Cfg: CodecCfg, P: Array> {
6 /// The public key of the participant.
7 pub public_key: P,
8
9 /// The maximum size of the mailbox backlog.
10 pub mailbox_size: usize,
11
12 /// The maximum number of cached items per sender.
13 pub deque_size: usize,
14
15 /// Whether messages are sent over the network as priority.
16 pub priority: bool,
17
18 /// The configuration for the codec item.
19 pub codec_config: Cfg,
20}