Crate ns_std_threaded [−] [src]
This crate provides a simple name resolver that uses lib's name resolution.
Unfortunately libc doesn't provide asyncrhonous name resolution for many reasons so we run requests in a thread pool.
For high-performance server applications this way is far from being performant, still it is the most compatible to everything else. So it might be used:
- To provide maximum compatibility (i.e. good default for dev environment)
- In applications where name resolution is not slow part
- As a fallthrough resolver for
ns_router::Routerwhere more frequently used name suffixes are overriden with faster resolver for that namespace
A Future returned from resolver
A resolver that uses ToSocketAddrs from stdlib in thread pool