pub struct IpDatabase<A: MapSubnets> { /* private fields */ }
Expand description
IP -> ASN Database for a single IP version. See Ipv4Database and Ipv6Database.
Implementations§
Source§impl<A> IpDatabase<A>
impl<A> IpDatabase<A>
Sourcepub fn from_reader(reader: impl Read) -> Result<Self, Error>
pub fn from_reader(reader: impl Read) -> Result<Self, Error>
Reads a new database from a reader.
This can be memory data using std::io::Cursor, or a std::fs::File.
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for IpDatabase<A>
impl<A> RefUnwindSafe for IpDatabase<A>where
<A as MapSubnets>::Net: RefUnwindSafe,
impl<A> Send for IpDatabase<A>where
<A as MapSubnets>::Net: Send,
impl<A> Sync for IpDatabase<A>where
<A as MapSubnets>::Net: Sync,
impl<A> Unpin for IpDatabase<A>where
<A as MapSubnets>::Net: Unpin,
impl<A> UnwindSafe for IpDatabase<A>where
<A as MapSubnets>::Net: UnwindSafe,
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