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