Struct asio::ip::UdpResolver [] [src]

pub struct UdpResolver {
}

The UDP resolver type.

Methods

impl UdpResolver
[src]

fn new() -> Self

Make a UDP resolver.

Trait Implementations

impl Cancel for UdpResolver
[src]

fn cancel<A, T>(a: A, obj: &Strand<T>) where A: Fn(&T) -> &Self + 'static, T: 'static

impl Resolver for UdpResolver
[src]

type Protocol = Udp

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> + 'static, A: Fn(&T) -> &Self + Send + 'static, F: FnOnce(Strand<T>, Result<Q::Iter>) + Send + 'static, T: 'static