Struct holochain_websocket::WebsocketConfig
source · pub struct WebsocketConfig {
pub default_request_timeout: Duration,
pub max_message_size: usize,
pub max_frame_size: usize,
}
Expand description
Websocket configuration struct.
Fields§
§default_request_timeout: Duration
Seconds after which the lib will stop tracking individual request ids. [default = 60 seconds]
max_message_size: usize
Maximum total message size of a websocket message. [default = 64M]
max_frame_size: usize
Maximum websocket frame size. [default = 16M]
Implementations§
source§impl WebsocketConfig
impl WebsocketConfig
sourcepub const DEFAULT: WebsocketConfig = _
pub const DEFAULT: WebsocketConfig = _
The default WebsocketConfig.
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
impl Copy 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§
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