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

The SaltyRTC Client instance.

To create an instance of this struct, use the SaltyClientBuilder.

Implementations

Instantiate a new SaltyClientBuilder instance.

Return the assigned role.

Return a reference to the auth token.

Return a reference to the initiator public key.

Return a reference to the selected task.

Encrypt a task message.

Encrypt a close message for the peer.

If the peer is already determined, return the current incoming and outgoing sequence numbers.

Encrypt raw bytes using the session keys after the handshake has been finished.

Decrypt raw bytes using the session keys after the handshake has been finished.

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.