Add Proxy field to PoolKey. (#114)

Fixes #109
This commit is contained in:
Alex L
2020-07-09 00:41:43 +09:00
committed by GitHub
parent 87b8a381bc
commit ea3b93dcab
3 changed files with 42 additions and 8 deletions

View File

@@ -1,14 +1,14 @@
use crate::error::Error;
/// Proxy protocol
#[derive(Clone, Copy, Debug, PartialEq)]
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub enum Proto {
HTTPConnect,
SOCKS5,
}
/// Proxy server definition
#[derive(Clone, Debug)]
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
pub struct Proxy {
pub(crate) server: String,
pub(crate) port: u32,