pub struct ClientSecurityConfig {
pub security_mode: SecurityMode,
pub fingerprint_algorithm: String,
pub remote_fingerprint: Option<String>,
pub remote_fingerprint_algorithm: Option<String>,
pub validate_fingerprint: bool,
pub srtp_profiles: Vec<SrtpProfile>,
pub certificate_path: Option<String>,
pub private_key_path: Option<String>,
pub srtp_key: Option<Vec<u8>>,
}Expand description
Client security configuration
Fields§
§security_mode: SecurityModeSecurity mode to use
fingerprint_algorithm: StringDTLS fingerprint algorithm
remote_fingerprint: Option<String>Remote DTLS fingerprint (if known)
remote_fingerprint_algorithm: Option<String>Remote fingerprint algorithm (if known)
validate_fingerprint: boolWhether to validate remote fingerprint
srtp_profiles: Vec<SrtpProfile>SRTP profiles supported (in order of preference)
certificate_path: Option<String>Path to certificate file (PEM format)
private_key_path: Option<String>Path to private key file (PEM format)
srtp_key: Option<Vec<u8>>Pre-shared SRTP key (for SRTP mode)
Trait Implementations§
Source§impl Clone for ClientSecurityConfig
impl Clone for ClientSecurityConfig
Source§fn clone(&self) -> ClientSecurityConfig
fn clone(&self) -> ClientSecurityConfig
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 moreSource§impl Debug for ClientSecurityConfig
impl Debug for ClientSecurityConfig
Auto Trait Implementations§
impl Freeze for ClientSecurityConfig
impl RefUnwindSafe for ClientSecurityConfig
impl Send for ClientSecurityConfig
impl Sync for ClientSecurityConfig
impl Unpin for ClientSecurityConfig
impl UnwindSafe for ClientSecurityConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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