Struct parity_ws::Builder [−][src]
pub struct Builder { /* fields omitted */ }Utility for constructing a WebSocket from various settings.
Implementations
impl Builder[src]
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.