pub struct PvaServerState {
pub inner: Arc<ServerState>,
pub registry: Arc<MonitorRegistry>,
}Expand description
Shared server state wrapping a SourceRegistry.
Consumers can hold an Arc<PvaServerState> to inspect or mutate the
underlying sources while the server tasks are running.
Fields§
§inner: Arc<ServerState>§registry: Arc<MonitorRegistry>Implementations§
Source§impl PvaServerState
impl PvaServerState
pub fn new(sources: Arc<SourceRegistry>, config: &PvaServerConfig) -> Self
pub fn with_registry( sources: Arc<SourceRegistry>, config: &PvaServerConfig, registry: Arc<MonitorRegistry>, ) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for PvaServerState
impl !UnwindSafe for PvaServerState
impl Freeze for PvaServerState
impl Send for PvaServerState
impl Sync for PvaServerState
impl Unpin for PvaServerState
impl UnsafeUnpin for PvaServerState
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