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>,
pub guid: [u8; 12],
pub tcp_port: u16,
pub advertise_ip: Option<IpAddr>,
pub listen_ip: IpAddr,
}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>§guid: [u8; 12]§tcp_port: u16§advertise_ip: Option<IpAddr>§listen_ip: IpAddrImplementations§
Source§impl<S> ServerState<S>where
S: PvStore,
impl<S> ServerState<S>where
S: PvStore,
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