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