Struct ratchet_rs::WebSocketConfig
source · pub struct WebSocketConfig {
pub max_message_size: usize,
}
Expand description
A configuration for building a WebSocket.
Fields§
§max_message_size: usize
The maximum payload size that is permitted to be received.
Trait Implementations§
source§impl Clone for WebSocketConfig
impl Clone for WebSocketConfig
source§fn clone(&self) -> WebSocketConfig
fn clone(&self) -> WebSocketConfig
Returns a copy 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 WebSocketConfig
impl Debug for WebSocketConfig
source§impl Default for WebSocketConfig
impl Default for WebSocketConfig
source§fn default() -> WebSocketConfig
fn default() -> WebSocketConfig
Returns the “default value” for a type. Read more
source§impl PartialEq for WebSocketConfig
impl PartialEq for WebSocketConfig
source§fn eq(&self, other: &WebSocketConfig) -> bool
fn eq(&self, other: &WebSocketConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WebSocketConfig
impl StructuralPartialEq for WebSocketConfig
Auto Trait Implementations§
impl Freeze for WebSocketConfig
impl RefUnwindSafe for WebSocketConfig
impl Send for WebSocketConfig
impl Sync for WebSocketConfig
impl Unpin for WebSocketConfig
impl UnwindSafe for WebSocketConfig
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