pub struct ConnectionConfig {
pub write_buffer_size: Option<usize>,
pub max_write_buffer_size: Option<usize>,
pub max_message_size: Option<usize>,
pub max_frame_size: Option<usize>,
pub accept_unmasked_frames: bool,
pub headers: Option<Vec<(String, String)>>,
}
Fields§
§write_buffer_size: Option<usize>
§max_write_buffer_size: Option<usize>
§max_message_size: Option<usize>
§max_frame_size: Option<usize>
§accept_unmasked_frames: bool
§headers: Option<Vec<(String, String)>>
Trait Implementations§
source§impl<'de> Deserialize<'de> for ConnectionConfig
impl<'de> Deserialize<'de> for ConnectionConfig
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
source§impl From<ConnectionConfig> for WebSocketConfig
impl From<ConnectionConfig> for WebSocketConfig
source§fn from(config: ConnectionConfig) -> Self
fn from(config: ConnectionConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConnectionConfig
impl RefUnwindSafe for ConnectionConfig
impl Send for ConnectionConfig
impl Sync for ConnectionConfig
impl Unpin for ConnectionConfig
impl UnwindSafe for ConnectionConfig
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