pub struct Shared {
pub config: Arc<Config>,
pub rules: Arc<Rules>,
pub workers: IndexMap<String, Arc<PlcWorker>>,
pub sessions: AtomicUsize,
pub writes: AtomicU64,
pub write_rejects: AtomicU64,
pub momentary_timeouts: AtomicU64,
}Expand description
What HTTP handlers read without asking the hub task.
Fields§
§config: Arc<Config>The config.
rules: Arc<Rules>The tag settings.
workers: IndexMap<String, Arc<PlcWorker>>The PLC workers in config order.
sessions: AtomicUsizeOpen sessions.
writes: AtomicU64Writes queued to a worker, momentary included.
write_rejects: AtomicU64Writes rejected by the hub’s checks.
momentary_timeouts: AtomicU64Buttons released by their watchdog.
Implementations§
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more