Struct tokio_dns::UdpSocket [−][src]
pub struct UdpSocket;
Shim for tokio::net::UdpSocket
Methods
impl UdpSocket
[src]
impl UdpSocket
pub fn bind<'a, T>(ep: T) -> IoFuture<UdpSocket> where
T: ToEndpoint<'a>,
[src]
pub fn bind<'a, T>(ep: T) -> IoFuture<UdpSocket> where
T: ToEndpoint<'a>,
Bind to the endpoint using the default resolver.
pub fn bind_with<'a, T, R>(ep: T, resolver: R) -> IoFuture<UdpSocket> where
T: ToEndpoint<'a>,
R: Resolver,
[src]
pub fn bind_with<'a, T, R>(ep: T, resolver: R) -> IoFuture<UdpSocket> where
T: ToEndpoint<'a>,
R: Resolver,
Bind to the endpoint using a custom resolver.