Struct sn0int_std::websockets::WebSocketOptions
source · pub struct WebSocketOptions {
pub headers: Option<HashMap<String, String>>,
pub proxy: Option<SocketAddr>,
pub connect_timeout: u64,
pub read_timeout: u64,
pub write_timeout: u64,
}
Fields§
§headers: Option<HashMap<String, String>>
§proxy: Option<SocketAddr>
§connect_timeout: u64
§read_timeout: u64
§write_timeout: u64
Implementations§
source§impl WebSocketOptions
impl WebSocketOptions
pub fn try_from(x: AnyLuaValue) -> Result<WebSocketOptions, Error>
Trait Implementations§
source§impl Debug for WebSocketOptions
impl Debug for WebSocketOptions
source§impl Default for WebSocketOptions
impl Default for WebSocketOptions
source§fn default() -> WebSocketOptions
fn default() -> WebSocketOptions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for WebSocketOptions
impl<'de> Deserialize<'de> for WebSocketOptions
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 WebSocketOptions
impl Send for WebSocketOptions
impl Sync for WebSocketOptions
impl Unpin for WebSocketOptions
impl UnwindSafe for WebSocketOptions
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