[][src]Struct actix_web::ws::Client

pub struct Client { /* fields omitted */ }

WebSocket client

Example of WebSocket client usage is available in websocket example

Methods

impl Client
[src]

Create new websocket connection

Create new websocket connection with custom ClientConnector

Set supported websocket protocols

Set cookie for handshake request

Set request Origin

Set max frame size

By default max size is set to 64kb

Set write buffer capacity

Default buffer capacity is 32kb

Disable payload masking. By default ws client masks frame payload.

Set request header

Set websocket handshake timeout

Handshake timeout is a total time for successful handshake. Default value is 5 seconds.

Connect to websocket server and do ws handshake

Auto Trait Implementations

impl !Send for Client

impl !Sync for Client

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<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