Struct ws::Builder
[−]
[src]
pub struct Builder { /* fields omitted */ }
Utility for constructing a WebSocket from various settings.
Methods
impl Builder
[src]
pub fn new() -> Builder
[src]
Create a new Builder with default settings.
pub fn build<F>(&self, factory: F) -> Result<WebSocket<F>> where
F: Factory,
[src]
F: Factory,
Build a WebSocket using this builder and a factory. It is possible to use the same builder to create multiple WebSockets.
pub fn with_settings(&mut self, settings: Settings) -> &mut Builder
[src]
Set the WebSocket settings to use.
Trait Implementations
impl Debug for Builder
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Builder
[src]
fn clone(&self) -> Builder
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more