pub struct SaltyClientBuilder { /* private fields */ }
Expand description

The builder instance returned by SaltyClient::build. Use this builder to construct a SaltyClient instance.

Implementations

Register a Task that should be accepted by the client.

When calling this method multiple times, tasks added first have the highest priority during task negotation.

Specify the server public permanent key if you want to use server key pinning.

Request that the server sends a WebSocket ping message at the specified interval.

Set the interval argument to None or to a zero duration to disable intervals.

Note: Fractions of seconds are ignored, so if you set the duration to 13.37s, then the ping interval 13s will be requested.

By default, ping messages are disabled.

Create a new SaltyRTC initiator.

Create a new SaltyRTC initiator with a trusted peer public key.

Create a new SaltyRTC responder.

Create a new SaltyRTC responder with a trusted peer public key.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.
Get the TypeId of this object.