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

ICEGatherer gathers local host, server reflexive and relay candidates, as well as enabling the retrieval of local Interactive Connectivity Establishment (ICE) parameters which can be exchanged in signaling.

Implementations

Gather ICE candidates.

Close prunes all local candidates, and closes the ports.

get_local_parameters returns the ICE parameters of the ICEGatherer.

get_local_candidates returns the sequence of valid local candidates associated with the ICEGatherer.

on_local_candidate sets an event handler which fires when a new local ICE candidate is available Take note that the handler is gonna be called with a nil pointer when gathering is finished.

on_state_change sets an event handler which fires any time the ICEGatherer changes

on_gathering_complete sets an event handler which fires any time the ICEGatherer changes

State indicates the current state of the ICE gatherer.

Trait Implementations

Returns the “default value” for a type. Read more

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.