deoxy 0.2.1

A programmable, user-friendly buffer exchange system.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! App state management.
use crate::{actix::Addr, Coordinator};

use std::sync::Arc;

/// Contains the coordinator and other required state components.
#[derive(Clone, Debug)]
pub struct State {
    /// The coordinator.
    // We don't need an RwLock because we'll just be sending messages.
    pub coord: Arc<Coordinator>,
    /// The address of the coordinator.
    pub addr: Addr<Coordinator>,
}