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

ICE agent.

Usage

  1. Get all components and prepare them for data/media transmission.
  2. Get the local credentials for all channels and send them over to a remote agent.
  3. Get all local candidates and send them over to the remote agent.
  4. Set remote credentials for all channels (required to be done before adding remote candidates).
  5. Add remote candidates.
  6. If there are no more remote candidates, conclude connectivity checks.

Implementations

Get an ICE agent builder.

Get the next local candidate.

Get the next local candidate.

Get the number of channels.

Get local credentials of a given channel.

Get remote credentials of a given channel (if known).

Set remote credentials for a given channel.

Add a given remote candidate.

Panics

The method will panic if the remote credentials for the corresponding channel have not been set.

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.