pub struct PeerConnection { /* private fields */ }

Implementations§

Create a new PeerConnection to be used for either dialing or accepting an inbound connection. The channel tuple is used to interface with an external signalling system.

Wait for an inbound connection. wait for remote offer set_remote_desc(&offer) create answer(&offer) set_local_desc(&answer) send(&answer)

Initiate an outbound dialing. dial create offer set local_description(&offer) send(offer) wait for remote answer set_remote_description(&answer)

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.

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.