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