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