pub enum Record<'a> {
LocationDb(Box<LocationRecord<'a>>),
ProxyDb(Box<ProxyRecord<'a>>),
}Expand description
A lookup result from either database type.
The record borrows string data from the memory-mapped file, so it
cannot outlive the DB that produced it.
Variants§
LocationDb(Box<LocationRecord<'a>>)
Geolocation record (country, city, coordinates, …).
ProxyDb(Box<ProxyRecord<'a>>)
Proxy detection record (proxy type, threat, provider, …).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Record<'a>
impl<'a> RefUnwindSafe for Record<'a>
impl<'a> Send for Record<'a>
impl<'a> Sync for Record<'a>
impl<'a> Unpin for Record<'a>
impl<'a> UnwindSafe for Record<'a>
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