Struct soketto::connection::Builder [−][src]
pub struct Builder<T> { /* fields omitted */ }
Expand description
Implementations
Create a new Builder
from the given async I/O resource and mode.
Note: Use this type only after a successful handshake. You can either use this crate’s handshake functionality or perform the handshake by some other means.
Set a custom buffer to use.
pub fn add_extensions<I>(&mut self, extensions: I) where
I: IntoIterator<Item = Box<dyn Extension + Send>>,
[src]
pub fn add_extensions<I>(&mut self, extensions: I) where
I: IntoIterator<Item = Box<dyn Extension + Send>>,
[src]Add extensions to use with this connection.
Only enabled extensions will be considered.
Set the maximum size of a complete message.
Message fragments will be buffered and concatenated up to this value, i.e. the sum of all message frames payload lengths will not be greater than this maximum. However, extensions may increase the total message size further, e.g. by decompressing the payload data.
Set the maximum size of a single websocket frame payload.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Builder<T>
impl<T> !UnwindSafe for Builder<T>