Skip to main content

RTCCryptoProvider

Trait RTCCryptoProvider 

Source
pub trait RTCCryptoProvider: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn crypto(&self) -> &dyn RTCCrypto;
    fn random(&self) -> &dyn RTCRandom;
}
Expand description

A bundle of cryptographic operations and cryptographically secure randomness.

Required Methods§

Source

fn name(&self) -> &'static str

Returns a non-secret diagnostic name.

Source

fn crypto(&self) -> &dyn RTCCrypto

Returns the cryptographic operations implementation.

Source

fn random(&self) -> &dyn RTCRandom

Returns the cryptographically secure random source.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§