Struct sn0int_std::sockets::SocketOptions
source · pub struct SocketOptions {
pub tls: bool,
pub sni_value: Option<String>,
pub disable_tls_verify: bool,
pub proxy: Option<SocketAddr>,
pub connect_timeout: u64,
pub read_timeout: u64,
pub write_timeout: u64,
}
Fields§
§tls: bool
§sni_value: Option<String>
§disable_tls_verify: bool
§proxy: Option<SocketAddr>
§connect_timeout: u64
§read_timeout: u64
§write_timeout: u64
Implementations§
source§impl SocketOptions
impl SocketOptions
pub fn try_from(x: AnyLuaValue) -> Result<SocketOptions, Error>
Trait Implementations§
source§impl Debug for SocketOptions
impl Debug for SocketOptions
source§impl Default for SocketOptions
impl Default for SocketOptions
source§fn default() -> SocketOptions
fn default() -> SocketOptions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SocketOptions
impl<'de> Deserialize<'de> for SocketOptions
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 RefUnwindSafe for SocketOptions
impl Send for SocketOptions
impl Sync for SocketOptions
impl Unpin for SocketOptions
impl UnwindSafe for SocketOptions
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
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