pub struct AsnDB { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Maxmind for AsnDB
impl Maxmind for AsnDB
fn filename() -> &'static str
fn new(reader: Reader<Vec<u8, Global>>) -> AsnDB
fn cache_path(cache_dir: &Path) -> Result<PathBuf, Error>
fn from_buf(buf: Vec<u8, Global>) -> Result<Self, Error>
fn open(path: &Path) -> Result<Self, Error>
fn try_open_reader(cache_dir: &Path) -> Result<Option<MaxmindReader>, Error>
Auto Trait Implementations§
impl RefUnwindSafe for AsnDB
impl Send for AsnDB
impl Sync for AsnDB
impl Unpin for AsnDB
impl UnwindSafe for AsnDB
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
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
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more