pub struct Hub {
manager: PvManager,
config: Config,
started: String,
clients: Mutex<HashMap<IpAddr, usize>>,
subscriptions: Arc<AtomicUsize>,
}Expand description
What every client connection shares.
Fields§
§manager: PvManager§config: Config§started: String§clients: Mutex<HashMap<IpAddr, usize>>Clients connected now, by address (see client_key).
subscriptions: Arc<AtomicUsize>PVs subscribed to by all clients together.
Implementations§
Auto Trait Implementations§
impl !Freeze for Hub
impl !RefUnwindSafe for Hub
impl !UnwindSafe for Hub
impl Send for Hub
impl Sync for Hub
impl Unpin for Hub
impl UnsafeUnpin for Hub
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