Struct meio_connect::client::WsClient[][src]

pub struct WsClient<P, A> where
    A: Actor
{ /* fields omitted */ }
Expand description

The client to connect to a WebSocket server.

It’s a LiteTask attached to an Actor that recieves incoming messages and a WsSender instance and uses it send outgoing messages back to a server.

Implementations

Created a new client.

The client connects to url, but if connection failed it retries to connect in repeat_interval. When connection espablished it send incoming data to an actor using the address.

Trait Implementations

The result of a finished task.

The log target for the LiteTask.

Routine of the task that can contain loops. It can taks into accout provided receiver to implement graceful interruption. Read more

Routine that can be unconditionally interrupted.

Called before repeatable_routine for initialization. The routine will be interrupted if this method failed. Read more

Routine that will be repeated till fail or success. Read more

Check of the every intaration of a routine.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more