pub struct ServerState {
pub sources: Arc<SourceRegistry>,
pub registry: Arc<MonitorRegistry>,
pub sid_counter: AtomicU32,
pub beacon_change: Arc<AtomicU16>,
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§
§sources: Arc<SourceRegistry>§registry: Arc<MonitorRegistry>§sid_counter: AtomicU32§beacon_change: Arc<AtomicU16>§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 ServerState
impl ServerState
Auto Trait Implementations§
impl !Freeze for ServerState
impl !RefUnwindSafe for ServerState
impl !UnwindSafe for ServerState
impl Send for ServerState
impl Sync for ServerState
impl Unpin for ServerState
impl UnsafeUnpin for ServerState
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