pub struct E2eeManager { /* private fields */ }Implementations§
Source§impl E2eeManager
impl E2eeManager
pub fn frame_cryptors( &self, ) -> HashMap<(ParticipantIdentity, TrackSid), FrameCryptor>
pub fn enabled(&self) -> bool
pub fn is_dc_encryption_enabled(&self) -> bool
pub fn set_enabled(&self, enabled: bool)
pub fn key_provider(&self) -> Option<KeyProvider>
pub fn encryption_type(&self) -> EncryptionType
Sourcepub fn handle_encrypted_data(
&self,
data: &[u8],
iv: &[u8],
participant_identity: &str,
key_index: u32,
) -> Option<Vec<u8>>
pub fn handle_encrypted_data( &self, data: &[u8], iv: &[u8], participant_identity: &str, key_index: u32, ) -> Option<Vec<u8>>
Decrypt data received from a data channel
Sourcepub fn encrypt_data(
&self,
data: &[u8],
participant_identity: &str,
key_index: u32,
) -> Result<EncryptedPacket, Box<dyn Error>>
pub fn encrypt_data( &self, data: &[u8], participant_identity: &str, key_index: u32, ) -> Result<EncryptedPacket, Box<dyn Error>>
Encrypt data for transmission over a data channel
Trait Implementations§
Source§impl Clone for E2eeManager
impl Clone for E2eeManager
Source§fn clone(&self) -> E2eeManager
fn clone(&self) -> E2eeManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for E2eeManager
impl !RefUnwindSafe for E2eeManager
impl Send for E2eeManager
impl Sync for E2eeManager
impl Unpin for E2eeManager
impl UnsafeUnpin for E2eeManager
impl !UnwindSafe for E2eeManager
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