Trait asio::ip::Resolver [] [src]

pub trait Resolver: Sized + Cancel {
    type Protocol: Protocol;
    fn resolve<'a, T: IoObject, Q: ResolveQuery<'a, Self>>(&self, io: &T, query: Q) -> Result<Q::Iter>;
    fn async_resolve<'a, Q, A, F, T>(a: A, query: Q, callback: F, obj: &Strand<T>) where Q: ResolveQuery<'a, Self>, A: Fn(&T) -> &Self + Send, F: FnOnce(Strand<T>, Result<Q::Iter>) + Send;
}

Provides endpoint resolution functionality.

Associated Types

Required Methods

fn resolve<'a, T: IoObject, Q: ResolveQuery<'a, Self>>(&self, io: &T, query: Q) -> Result<Q::Iter>

fn async_resolve<'a, Q, A, F, T>(a: A, query: Q, callback: F, obj: &Strand<T>) where Q: ResolveQuery<'a, Self>, A: Fn(&T) -> &Self + Send, F: FnOnce(Strand<T>, Result<Q::Iter>) + Send

Implementors