pub struct Querier<S> {
pub header: Schema,
pub index_v4: V4Querier,
pub index_v6: Option<V6Querier>,
pub records_v4_pool: Pool<V4Querier<S>>,
pub records_v6_pool: Option<Pool<V6Querier<S>>>,
pub content_pool: Pool<Querier<S>>,
}Fields§
§header: Schema§index_v4: V4Querier§index_v6: Option<V6Querier>§records_v4_pool: Pool<V4Querier<S>>§records_v6_pool: Option<Pool<V6Querier<S>>>§content_pool: Pool<Querier<S>>Implementations§
Source§impl<S> Querier<S>
impl<S> Querier<S>
pub async fn lookup( &self, ip: IpAddr, selected_fields: Option<&[RecordField]>, ) -> Result<Option<(IpAddr, IpAddr, RecordFieldContents)>, LookupError>
pub async fn lookup_ipv4( &self, ip: Ipv4Addr, selected_fields: Option<&[RecordField]>, ) -> Result<Option<(IpAddr, IpAddr, RecordFieldContents)>, LookupError>
pub async fn lookup_ipv6( &self, ip: Ipv6Addr, selected_fields: Option<&[RecordField]>, ) -> Result<Option<(IpAddr, IpAddr, RecordFieldContents)>, LookupError>
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Querier<S>
impl<S> RefUnwindSafe for Querier<S>
impl<S> Send for Querier<S>where
S: Send,
impl<S> Sync for Querier<S>where
S: Send,
impl<S> Unpin for Querier<S>
impl<S> UnwindSafe for Querier<S>
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