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

DTLSTransport allows an application access to information about the DTLS transport over which RTP and RTCP packets are sent and received by RTPSender and RTPReceiver, as well other data such as SCTP packets sent and received by data channels.

Implementations

returns the currently-configured ICETransport or None if one has not been configured

on_state_change sets a handler that is fired when the DTLS connection state changes.

state returns the current dtls_transport transport state.

write_rtcp sends a user provided RTCP packet to the connected peer. If no peer is connected the packet is discarded.

get_local_parameters returns the DTLS parameters of the local DTLSTransport upon construction.

get_remote_certificate returns the certificate chain in use by the remote side returns an empty list prior to selection of the remote certificate

start DTLS transport negotiation with the parameters of the remote DTLS transport

stops and closes the DTLSTransport object.

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.