1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#![allow(dead_code)]
#[allow(unused_imports)] use super::*;
use crate::components::ComponentSender;
#[derive(Debug, Clone)]
pub struct CoordinatorInfo {
coordinator: settings::Coordinator,
sender: ComponentSender,
}
impl CoordinatorInfo {
pub const fn new(coordinator: settings::Coordinator, sender: ComponentSender) -> Self {
Self { coordinator, sender }
}
pub const fn coordinator(&self) -> settings::Coordinator { self.coordinator }
pub const fn sender(&self) -> &ComponentSender { &self.sender }
}