pub struct ServerState<S>where
S: PvStore,{
pub store: Arc<S>,
pub registry: Arc<MonitorRegistry>,
pub sid_counter: Atomic<u32>,
pub beacon_change: Arc<Atomic<u16>>,
pub compute_alarms: bool,
pub pvlist_mode: PvListMode,
pub pvlist_max: usize,
pub pvlist_allow_pattern: Option<Regex>,
}Expand description
Shared server state that is passed to every connection handler.
Fields§
§store: Arc<S>§registry: Arc<MonitorRegistry>§sid_counter: Atomic<u32>§beacon_change: Arc<Atomic<u16>>§compute_alarms: bool§pvlist_mode: PvListMode§pvlist_max: usize§pvlist_allow_pattern: Option<Regex>Implementations§
Source§impl<S> ServerState<S>where
S: PvStore,
impl<S> ServerState<S>where
S: PvStore,
pub fn new( store: Arc<S>, registry: Arc<MonitorRegistry>, compute_alarms: bool, pvlist_mode: PvListMode, pvlist_max: usize, pvlist_allow_pattern: Option<Regex>, ) -> ServerState<S>
Auto Trait Implementations§
impl<S> !Freeze for ServerState<S>
impl<S> !RefUnwindSafe for ServerState<S>
impl<S> Send for ServerState<S>
impl<S> Sync for ServerState<S>
impl<S> Unpin for ServerState<S>
impl<S> UnsafeUnpin for ServerState<S>
impl<S> !UnwindSafe for ServerState<S>
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