idoh 0.2.6

Async DoH client for Rust / Rust 异步 DoH 客户端
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use thiserror::Error;

pub type Result<T> = std::result::Result<T, Error>;

#[derive(Debug, Error)]
pub enum Error {
  #[error("HTTP error: {0}")]
  Http(#[from] ireq::Error),

  #[error("JSON parse error: {0}")]
  Json(#[from] serde_json::Error),
}