Struct webrtc_ice::agent::Agent[][src]

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

Represents the ICE agent.

Implementations

Connects to the remote agent, acting as the controlling ice agent. The method blocks until at least one ice candidate pair has successfully connected.

The operation will be cancelled if cancel_rx either receives a message or its channel closes.

Connects to the remote agent, acting as the controlled ice agent. The method blocks until at least one ice candidate pair has successfully connected.

The operation will be cancelled if cancel_rx either receives a message or its channel closes.

Creates a new Agent.

Sets a handler that is fired when the connection state changes.

Sets a handler that is fired when the final candidate pair is selected.

Sets a handler that is fired when new candidates gathered. When the gathering process complete the last candidate is nil.

Adds a new remote candidate.

Returns the local candidates.

Returns the local user credentials.

Returns the remote user credentials.

Cleans up the Agent.

Returns the selected pair or nil if there is none

Sets the credentials of the remote agent.

Restarts the ICE Agent with the provided ufrag/pwd If no ufrag/pwd is provided the Agent will generate one itself.

Restart must only be called when GatheringState is GatheringStateComplete a user must then call GatherCandidates explicitly to start generating new ones.

Initiates the trickle based gathering process.

Returns a list of candidate pair stats.

Returns a list of local candidates stats.

Returns a list of remote candidates stats.

Creates a Remote Candidate from its string representation.

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.

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.