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

SRTP context builder.

Implementations

Enable a given SRTP profile.

Multiple SRTP profiles can be enabled by calling this method multiple times. The order in which you enable SRTP profiles matters. The first enabled profile will have the highest priority when negotiating session parameters with a remote peer.

If you don’t enable any profiles, the default profiles will be enabled:

  • SRTP_AES128_CM_SHA1_80
  • SRTP_AES128_CM_SHA1_32

Create a new SRTP context from a given SSL context.

Panics

This methods panics if the given SSL context does not contain any private key or certificate.

Create a new SRTP context from a given private key and a corresponding certificate.

Create a new SRTP context with a self-signed certificate from a given private key.

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.