[][src]Struct websocket_lite::ClientBuilder

pub struct ClientBuilder { /* fields omitted */ }

Establishes a WebSocket connection.

ws://... and wss://... URLs are supported.

Methods

impl ClientBuilder
[src]

Creates a ClientBuilder that connects to a given WebSocket URL.

This method returns an Err result if URL parsing fails.

Creates a ClientBuilder that connects to a given WebSocket URL.

This method never fails as the URL has already been parsed.

Establishes a connection to the WebSocket server.

wss://... URLs are not supported by this method. Use async_connect if you need to be able to handle both ws://... and wss://... URLs.

Establishes a connection to the WebSocket server.

wss://... URLs are not supported by this method. Use connect if you need to be able to handle both ws://... and wss://... URLs.

Establishes a connection to the WebSocket server.

Establishes a connection to the WebSocket server.

Takes over an already established stream and use it to send and receive WebSocket messages.

This method assumes that the TLS connection has already been established, if needed. It sends an HTTP Connection: Upgrade request and waits for an HTTP OK response before proceeding.

Takes over an already established stream and use it to send and receive WebSocket messages.

This method assumes that the TLS connection has already been established, if needed. It sends an HTTP Connection: Upgrade request and waits for an HTTP OK response before proceeding.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Erased for T