pub struct PeerOptions {Show 22 fields
pub connection_timeout: Option<u64>,
pub read_timeout: Option<u64>,
pub idle_timeout: Option<u64>,
pub write_timeout: Option<u64>,
pub verify_cert: Option<bool>,
pub verify_hostname: Option<bool>,
pub alternative_cn: Option<String>,
pub alpn: Option<String>,
pub tcp_keepalive: Option<TcpKeepaliveConfig>,
pub tcp_recv_buf: Option<usize>,
pub dscp: Option<u8>,
pub h2_ping_interval: Option<u64>,
pub max_h2_streams: Option<usize>,
pub allow_h1_response_invalid_content_length: Option<bool>,
pub extra_proxy_headers: Option<HashMap<String, String>>,
pub curves: Option<String>,
pub second_keyshare: Option<bool>,
pub tcp_fast_open: Option<bool>,
pub cacert: Option<String>,
pub client_cert: Option<String>,
pub client_key: Option<String>,
pub sni: Option<String>,
}Fields§
§connection_timeout: Option<u64>§read_timeout: Option<u64>§idle_timeout: Option<u64>§write_timeout: Option<u64>§verify_cert: Option<bool>§verify_hostname: Option<bool>§alternative_cn: Option<String>§alpn: Option<String>ALPN protocol negotiation: “h1”, “h2”, or “h1h2”
tcp_keepalive: Option<TcpKeepaliveConfig>§tcp_recv_buf: Option<usize>§dscp: Option<u8>§h2_ping_interval: Option<u64>§max_h2_streams: Option<usize>§allow_h1_response_invalid_content_length: Option<bool>§extra_proxy_headers: Option<HashMap<String, String>>§curves: Option<String>§tcp_fast_open: Option<bool>§cacert: Option<String>§client_cert: Option<String>§client_key: Option<String>§sni: Option<String>Trait Implementations§
Source§impl Clone for PeerOptions
impl Clone for PeerOptions
Source§fn clone(&self) -> PeerOptions
fn clone(&self) -> PeerOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PeerOptions
impl Debug for PeerOptions
Source§impl Default for PeerOptions
impl Default for PeerOptions
Source§fn default() -> PeerOptions
fn default() -> PeerOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PeerOptions
impl<'de> Deserialize<'de> for PeerOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PeerOptions
impl RefUnwindSafe for PeerOptions
impl Send for PeerOptions
impl Sync for PeerOptions
impl Unpin for PeerOptions
impl UnsafeUnpin for PeerOptions
impl UnwindSafe for PeerOptions
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