pub struct Resolver<P, S> { /* private fields */ }
Expand description
An entry produced by a resolver.
Implementations§
Source§impl<P: IpProtocol, S: Socket<P> + AsAsyncFd> Resolver<P, S>
impl<P: IpProtocol, S: Socket<P> + AsAsyncFd> Resolver<P, S>
pub fn new(ctx: &IoContext) -> Resolver<P, S>
pub fn async_connect<Q, F>(&self, query: Q, handler: F) -> F::Output
pub fn connect<Q>(&self, query: Q) -> Result<(S, IpEndpoint<P>)>where
Q: ResolverQuery<P>,
pub fn resolve<Q>(&self, query: Q) -> Result<ResolverIter<P>>where
Q: ResolverQuery<P>,
Trait Implementations§
Auto Trait Implementations§
impl<P, S> Freeze for Resolver<P, S>
impl<P, S> !RefUnwindSafe for Resolver<P, S>
impl<P, S> Send for Resolver<P, S>
impl<P, S> !Sync for Resolver<P, S>
impl<P, S> Unpin for Resolver<P, S>
impl<P, S> !UnwindSafe for Resolver<P, 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