Struct GaiResolver

pub struct GaiResolver { /* private fields */ }

A resolver using blocking getaddrinfo calls in a threadpool.

Implementations

impl GaiResolver

fn new() -> Self

Construct a new GaiResolver.

Trait Implementations

impl Clone for GaiResolver

fn clone(&self) -> GaiResolver

impl Debug for GaiResolver

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Service<Name> for GaiResolver

type Response = GaiAddrs;
type Error = Error;
type Future = GaiFuture;
fn poll_ready(&mut self, _cx: &mut Context<'_>) -> Poll<Result<(), Error>>
fn call(&mut self, name: Name) -> Self::Future

Auto Trait Implementations

impl Freeze for GaiResolver

impl RefUnwindSafe for GaiResolver

impl Send for GaiResolver

impl Sync for GaiResolver

impl Unpin for GaiResolver

impl UnsafeUnpin for GaiResolver

impl UnwindSafe for GaiResolver

Blanket Implementations

impl<T> Any for GaiResolver where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for GaiResolver where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for GaiResolver where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for GaiResolver where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for GaiResolver

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for GaiResolver

impl<T> ToOwned for GaiResolver where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T> WithSubscriber for GaiResolver

impl<T, U> Into<U> for GaiResolver where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for GaiResolver where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for GaiResolver where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>