Struct ws::Builder [−][src]
pub struct Builder { /* fields omitted */ }
Utility for constructing a WebSocket from various settings.
Methods
impl Builder
[src]
impl Builder
pub fn new() -> Builder
[src]
pub fn new() -> Builder
Create a new Builder with default settings.
pub fn build<F>(&self, factory: F) -> Result<WebSocket<F>> where
F: Factory,
[src]
pub 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.
pub fn with_settings(&mut self, settings: Settings) -> &mut Builder
[src]
pub fn with_settings(&mut self, settings: Settings) -> &mut Builder
Set the WebSocket settings to use.
Trait Implementations
impl Debug for Builder
[src]
impl Debug for Builder
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Builder
[src]
impl Default for Builder
impl Clone for Builder
[src]
impl Clone for Builder
fn clone(&self) -> Builder
[src]
fn clone(&self) -> Builder
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Builder
[src]
impl Copy for Builder