Struct ws::Builder [−][src]
pub struct Builder { /* fields omitted */ }Utility for constructing a WebSocket from various settings.
Methods
impl Builder[src]
impl Builderpub fn new() -> Builder[src]
pub fn new() -> BuilderCreate 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 BuilderSet the WebSocket settings to use.
Trait Implementations
impl Debug for Builder[src]
impl Debug for Builderfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for Builder[src]
impl Default for Builderimpl Clone for Builder[src]
impl Clone for Builderfn clone(&self) -> Builder[src]
fn clone(&self) -> BuilderReturns 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