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
sourceimpl Clone for WebSocketConfig
impl Clone for WebSocketConfig
sourcefn clone(&self) -> WebSocketConfig
fn clone(&self) -> WebSocketConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WebSocketConfig
impl Debug for WebSocketConfig
sourceimpl Default for WebSocketConfig
impl Default for WebSocketConfig
sourcefn default() -> WebSocketConfig
fn default() -> WebSocketConfig
Returns the “default value” for a type. Read more
sourceimpl PartialEq<WebSocketConfig> for WebSocketConfig
impl PartialEq<WebSocketConfig> for WebSocketConfig
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &WebSocketConfig) -> bool
fn ne(&self, other: &WebSocketConfig) -> bool
This method tests for !=
.
impl Copy for WebSocketConfig
impl StructuralPartialEq for WebSocketConfig
Auto Trait Implementations
impl RefUnwindSafe for WebSocketConfig
impl Send for WebSocketConfig
impl Sync for WebSocketConfig
impl Unpin for WebSocketConfig
impl UnwindSafe for WebSocketConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more