Struct webrtc_srtp::config::Config
source · 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: SessionKeys
§profile: ProtectionProfile
§local_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§
source§impl Config
impl Config
sourcepub async fn extract_session_keys_from_dtls(
&mut self,
exporter: impl KeyingMaterialExporter,
is_client: bool
) -> Result<(), Error>
pub async fn extract_session_keys_from_dtls( &mut self, exporter: impl KeyingMaterialExporter, is_client: bool ) -> Result<(), Error>
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§
Auto Trait Implementations§
impl Freeze for Config
impl !RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl !UnwindSafe for Config
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more