pub struct GeoIpDb { /* private fields */ }Implementations§
Source§impl GeoIpDb
impl GeoIpDb
Sourcepub fn from_ripe_delegated_str(content: &str) -> Self
pub fn from_ripe_delegated_str(content: &str) -> Self
Build a DB from RIPE delegated stats content (runtime).
Sourcepub fn from_ripe_delegated_file<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn from_ripe_delegated_file<P: AsRef<Path>>(path: P) -> Result<Self>
Load RIPE delegated stats data from a file at runtime.
Sourcepub fn from_cache_or_embedded<P: AsRef<Path>>(cache_path: P) -> Self
pub fn from_cache_or_embedded<P: AsRef<Path>>(cache_path: P) -> Self
Try to load from a cache file; if missing/unreadable, fall back to embedded data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GeoIpDb
impl RefUnwindSafe for GeoIpDb
impl Send for GeoIpDb
impl Sync for GeoIpDb
impl Unpin for GeoIpDb
impl UnwindSafe for GeoIpDb
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