Struct ipdb::reader::Reader[][src]

pub struct Reader { /* fields omitted */ }

Implementations

impl Reader[src]

pub fn open_file<T: AsRef<Path>>(file: T) -> Result<Reader>[src]

pub fn is_ipv4(&self) -> bool[src]

pub fn is_ipv6(&self) -> bool[src]

pub fn find(&self, addr: &str, language: &str) -> Result<Vec<&str>>[src]

pub fn find_city_info(&self, addr: &str, language: &str) -> Result<CityInfo<'_>>[src]

pub fn find_district_info(
    &self,
    addr: &str,
    language: &str
) -> Result<DistrictInfo<'_>>
[src]

pub fn find_idc_info(&self, addr: &str, language: &str) -> Result<IdcInfo<'_>>[src]

pub fn find_base_station_info(
    &self,
    addr: &str,
    language: &str
) -> Result<BaseStationInfo<'_>>
[src]

pub fn find_map(
    &self,
    addr: &str,
    language: &str
) -> Result<BTreeMap<String, &str>>
[src]

Auto Trait Implementations

impl RefUnwindSafe for Reader

impl Send for Reader

impl Sync for Reader

impl Unpin for Reader

impl UnwindSafe for Reader

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.