Struct sde::SdeManager
source · pub struct SdeManager<'a> {
pub path: &'a Path,
pub universe: Universe,
pub factor: i64,
}Expand description
Manages the process of reading SDE data and putting into different data structures for easy in-memory access.
Fields§
§path: &'a PathThe path to the SDE database
universe: UniverseThe universe Object that contains all the data
factor: i64Adjusting factor for coordinates (because are very large numbers)
Implementations§
source§impl<'a> SdeManager<'a>
impl<'a> SdeManager<'a>
sourcepub fn new(path: &Path, factor: i64) -> SdeManager<'_>
pub fn new(path: &Path, factor: i64) -> SdeManager<'_>
Creates a new SdeManager using a path to build the connection
sourcepub fn get_universe(&mut self) -> Result<bool, Error>
pub fn get_universe(&mut self) -> Result<bool, Error>
Method that retrieve all Eve Online universe data and some dictionaries to quick access the available data.
Data retrieved:
- Regions
- Constellations
- Solar Systems
Auto Trait Implementations§
impl<'a> RefUnwindSafe for SdeManager<'a>
impl<'a> Send for SdeManager<'a>
impl<'a> Sync for SdeManager<'a>
impl<'a> Unpin for SdeManager<'a>
impl<'a> UnwindSafe for SdeManager<'a>
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