/// Create a new instance of the universe structure and spawn housekeeping thread
Create a new instance of the universe structure and spawn housekeeping thread
Create a new instance of the universe structure and spawn housekeeping thread
pub fn new(esi_client: esi::Client) -> Result<Universe> {
        let inner = Inner { esi_client,
                            regions: FnvHashSet::default(),
                            structures: FnvHashMap::default(),
                            structure_blacklist: FnvHashSet::default() };
        let new = Universe(Arc::new(RwLock::new(inner)));
        new.load_blacklist()?;
        new.load_regions()?;
        new.load_structures()?;
        new.start_housekeeping();
        Ok(new)
    }
pub fn new ( esi_client : esi :: Client ) -> Result < Universe > { let inner = Inner { esi_client , regions : FnvHashSet :: default ( ) , structures : FnvHashMap :: default ( ) , structure_blacklist : FnvHashSet :: default ( ) } ; let new = Universe ( Arc :: new ( RwLock :: new ( inner ) ) ) ; new . load_blacklist ( ) ? ; new . load_regions ( ) ? ; new . load_structures ( ) ? ; new . start_housekeeping ( ) ; Ok ( new ) }
Create a new instance of the universe structure and spawn housekeeping thread
Create a new instance of the universe structure and spawn housekeeping thread
esi_client
esi::Client