pub struct Service {
pub user_to_env: Arc<RwLock<HashMap<UserId, HashSet<EnvId>>>>,
pub all_env: Arc<RwLock<HashMap<EnvId, Env>>>,
pub all_vm: Arc<RwLock<HashMap<VmId, Vm>>>,
}
Expand description
Service is a global data collection.
Fields§
§user_to_env: Arc<RwLock<HashMap<UserId, HashSet<EnvId>>>>
§all_env: Arc<RwLock<HashMap<EnvId, Env>>>
§all_vm: Arc<RwLock<HashMap<VmId, Vm>>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Service
impl !RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl !UnwindSafe for Service
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