Docs.rs
  • hyper-system-resolver-0.5.0
    • hyper-system-resolver 0.5.0
    • Permalink
    • Docs.rs crate page
    • MIT
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • MOZGIII
    • Dependencies
      • derive_builder ^0.9 normal
      • dns-lookup ^1 normal
      • hyper ^0.14 normal
      • tokio ^1 normal
      • tower-service ^0.3 normal
      • tracing ^0.1 normal
      • hyper ^0.14 dev
      • tokio ^1 dev
      • libc ^0.2 normal optional
      • winapi ^0.3 normal optional
    • Versions
    • 100% of the crate is documented
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate hyper_system_resolver

hyper_system_resolver0.5.0

  • All Items

Sections

  • Usage

Crate Items

  • Re-exports
  • Modules

Crates

  • hyper_system_resolver

Crate hyper_system_resolver

Source
Expand description

System DNS resolver for hyper.

Resolves the name via getaddrinfo, but more flexible than hyper standard resolver.

§Usage

use hyper_system_resolver::{addr_info_hints, AddrInfoHints};

let addr_info_hints = AddrInfoHints {
     address_family: addr_info_hints::AddressFamily::Inet6,
};
let system_resolve = hyper_system_resolver::system::System {
    addr_info_hints: Some(addr_info_hints.into()),
    service: None,
};
let http_connector = hyper::client::HttpConnector::new_with_resolver(system_resolve.resolver());
let client = hyper::client::Client::builder().build::<_, hyper::Body>(http_connector);

Re-exports§

pub use addr_info_hints::AddrInfoHints;

Modules§

addr_info_hints
AddrInfoHints and associated types.
background
Background resolver.
system
The system resolver implementation.

Results

Settings
Help
    struct
    hyper_system_resolver::addr_info_hints::AddrInfoHints
    Portable AddrInfoHints.
    module
    hyper_system_resolver::addr_info_hints
    AddrInfoHints and associated types.
    method
    hyper_system_resolver::system::SystemBuilder::addr_info_hints
    The hints to give the the system resolver when performing …
    struct field
    hyper_system_resolver::system::System::addr_info_hints
    The hints to give the the system resolver when performing …
    struct
    hyper_system_resolver::addr_info_hints::AddrInfoHintsBuilder
    Builder for AddrInfoHints.
    struct field
    hyper_system_resolver::addr_info_hints::AddrInfoHints::address_family
    AddrInfoHints -> AddressFamily
    Address family to request.
    method
    hyper_system_resolver::addr_info_hints::AddrInfoHints::fmt
    &AddrInfoHints, &mut Formatter -> Result
    method
    hyper_system_resolver::system::SystemBuilder::addr_info_hints
    &mut SystemBuilder, Option<AddrInfoHints> -> &mut SystemBuilder
    The hints to give the the system resolver when performing …
    method
    hyper_system_resolver::addr_info_hints::AddrInfoHints::default
    -> AddrInfoHints
    method
    hyper_system_resolver::addr_info_hints::AddrInfoHintsBuilder::build
    &AddrInfoHintsBuilder -> Result<AddrInfoHints, String>
    Builds a new AddrInfoHints.