Struct srt_protocol::settings::CipherSettings
source · pub struct CipherSettings {
pub key_settings: KeySettings,
pub key_refresh: KeyMaterialRefreshSettings,
pub stream_keys: StreamEncryptionKeys,
}
Fields§
§key_settings: KeySettings
§key_refresh: KeyMaterialRefreshSettings
§stream_keys: StreamEncryptionKeys
Implementations§
source§impl CipherSettings
impl CipherSettings
pub fn new_random( key_settings: &KeySettings, km_refresh: &KeyMaterialRefreshSettings ) -> Self
pub fn new( key_settings: &KeySettings, km_refresh: &KeyMaterialRefreshSettings, key_material: &KeyingMaterialMessage ) -> Result<Self, KeyMaterialError>
pub fn wrap_keying_material(&self) -> Option<KeyingMaterialMessage>
Trait Implementations§
source§impl Clone for CipherSettings
impl Clone for CipherSettings
source§fn clone(&self) -> CipherSettings
fn clone(&self) -> CipherSettings
Returns a copy 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 moresource§impl Debug for CipherSettings
impl Debug for CipherSettings
source§impl PartialEq<CipherSettings> for CipherSettings
impl PartialEq<CipherSettings> for CipherSettings
source§fn eq(&self, other: &CipherSettings) -> bool
fn eq(&self, other: &CipherSettings) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CipherSettings
impl StructuralEq for CipherSettings
impl StructuralPartialEq for CipherSettings
Auto Trait Implementations§
impl RefUnwindSafe for CipherSettings
impl Send for CipherSettings
impl Sync for CipherSettings
impl Unpin for CipherSettings
impl UnwindSafe for CipherSettings
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.