selium_server/topic/
config.rs1use std::{sync::Arc, time::Duration};
2
3pub type SharedTopicConfig = Arc<TopicConfig>;
4
5#[derive(Debug)]
6pub struct TopicConfig {
7 pub polling_interval: Duration,
8}
9
10impl TopicConfig {
11 pub fn new(polling_interval: Duration) -> Self {
12 Self { polling_interval }
13 }
14}