pub struct Database<S> {
pub inner: Querier<S>,
}Fields§
§inner: Querier<S>Implementations§
Source§impl<S> Database<S>
impl<S> Database<S>
pub async fn lookup( &self, ip: IpAddr, selected_fields: impl Into<Option<&[RecordField]>>, ) -> Result<Option<Record>, DatabaseLookupError>
pub async fn lookup_ipv4( &self, ip: Ipv4Addr, selected_fields: impl Into<Option<&[RecordField]>>, ) -> Result<Option<Record>, DatabaseLookupError>
pub async fn lookup_ipv6( &self, ip: Ipv6Addr, selected_fields: impl Into<Option<&[RecordField]>>, ) -> Result<Option<Record>, DatabaseLookupError>
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Database<S>
impl<S> RefUnwindSafe for Database<S>
impl<S> Send for Database<S>where
S: Send,
impl<S> Sync for Database<S>where
S: Send,
impl<S> Unpin for Database<S>
impl<S> UnwindSafe for Database<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