Struct webrtc_srtp::config::Config[][src]

pub struct Config {
    pub keys: SessionKeys,
    pub profile: ProtectionProfile,
    pub local_rtp_options: Option<ContextOption>,
    pub remote_rtp_options: Option<ContextOption>,
    pub local_rtcp_options: Option<ContextOption>,
    pub remote_rtcp_options: Option<ContextOption>,
}
Expand description

Config is used to configure a session. You can provide either a KeyingMaterialExporter to export keys or directly pass the keys themselves. After a Config is passed to a session it must not be modified.

Fields

keys: SessionKeysprofile: ProtectionProfilelocal_rtp_options: Option<ContextOption>

List of local/remote context options. ReplayProtection is enabled on remote context by default. Default replay protection window size is 64.

remote_rtp_options: Option<ContextOption>local_rtcp_options: Option<ContextOption>remote_rtcp_options: Option<ContextOption>

Implementations

ExtractSessionKeysFromDTLS allows setting the Config SessionKeys by extracting them from DTLS. This behavior is defined in RFC5764: https://tools.ietf.org/html/rfc5764

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

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.