pub struct SrtpKeyParam {
pub key_and_salt: String,
pub lifetime: Option<u32>,
pub mki_and_length: Option<(u32, u32)>,
}Expand description
SRTP Key parameter
Fields§
§key_and_salt: StringConcatenated key and salt, base64 encoded
lifetime: Option<u32>Master key lifetime (max number of SRTP or SRTCP packets using this master key)
mki_and_length: Option<(u32, u32)>MKI (Master Key Identifier) and length of the MKI field in SRTP packets
Implementations§
Source§impl SrtpKeyParam
impl SrtpKeyParam
pub fn new(key_and_salt: impl ToString) -> Self
pub fn with_lifetime(key_and_salt: impl ToString, lifetime: u32) -> Self
pub fn with_lifetime_and_mki_and_length( key_and_salt: impl ToString, lifetime: u32, mki: u32, length: u32, ) -> Self
pub fn set_lifetime(&mut self, lifetime: u32)
pub fn set_mki_and_length(&mut self, mki: u32, length: u32)
Trait Implementations§
Source§impl Clone for SrtpKeyParam
impl Clone for SrtpKeyParam
Source§fn clone(&self) -> SrtpKeyParam
fn clone(&self) -> SrtpKeyParam
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SrtpKeyParam
impl Debug for SrtpKeyParam
Source§impl Display for SrtpKeyParam
impl Display for SrtpKeyParam
impl Eq for SrtpKeyParam
Source§impl FromStr for SrtpKeyParam
impl FromStr for SrtpKeyParam
Source§impl PartialEq for SrtpKeyParam
impl PartialEq for SrtpKeyParam
impl StructuralPartialEq for SrtpKeyParam
Auto Trait Implementations§
impl Freeze for SrtpKeyParam
impl RefUnwindSafe for SrtpKeyParam
impl Send for SrtpKeyParam
impl Sync for SrtpKeyParam
impl Unpin for SrtpKeyParam
impl UnsafeUnpin for SrtpKeyParam
impl UnwindSafe for SrtpKeyParam
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