pub struct PvaServerState<S>where
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> PvaServerState<S>where
S: PvStore,
impl<S> PvaServerState<S>where
S: PvStore,
pub fn new(store: Arc<S>, config: &PvaServerConfig) -> PvaServerState<S>
pub fn with_registry( store: Arc<S>, config: &PvaServerConfig, registry: Arc<MonitorRegistry>, ) -> PvaServerState<S>
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