[][src]Trait sn0int::geoip::Maxmind

pub trait Maxmind: Sized {
    fn archive_filename() -> &'static str;
fn archive_url() -> &'static str;
fn new(reader: Reader<Vec<u8>>) -> Self; fn cache_path() -> Result<String> { ... }
fn from_buf(buf: Vec<u8>) -> Result<Self> { ... }
fn open(path: &str) -> Result<Self> { ... }
fn open_into_buf() -> Result<Vec<u8>> { ... }
fn open_or_download() -> Result<Self> { ... }
fn download<P: AsRef<Path>>(path: P, filter: &str, url: &str) -> Result<()> { ... } }

Required methods

fn archive_filename() -> &'static str

fn archive_url() -> &'static str

fn new(reader: Reader<Vec<u8>>) -> Self

Loading content...

Provided methods

fn cache_path() -> Result<String>

fn from_buf(buf: Vec<u8>) -> Result<Self>

fn open(path: &str) -> Result<Self>

fn open_into_buf() -> Result<Vec<u8>>

fn open_or_download() -> Result<Self>

fn download<P: AsRef<Path>>(path: P, filter: &str, url: &str) -> Result<()>

Loading content...

Implementors

impl Maxmind for AsnDB[src]

fn cache_path() -> Result<String>[src]

fn from_buf(buf: Vec<u8>) -> Result<Self>[src]

fn open(path: &str) -> Result<Self>[src]

fn open_into_buf() -> Result<Vec<u8>>[src]

fn open_or_download() -> Result<Self>[src]

fn download<P: AsRef<Path>>(path: P, filter: &str, url: &str) -> Result<()>[src]

impl Maxmind for GeoIP[src]

fn cache_path() -> Result<String>[src]

fn from_buf(buf: Vec<u8>) -> Result<Self>[src]

fn open(path: &str) -> Result<Self>[src]

fn open_into_buf() -> Result<Vec<u8>>[src]

fn open_or_download() -> Result<Self>[src]

fn download<P: AsRef<Path>>(path: P, filter: &str, url: &str) -> Result<()>[src]

Loading content...