pub struct ServerSecurityConfig {
pub security_mode: SecurityMode,
pub fingerprint_algorithm: String,
pub certificate_path: Option<String>,
pub private_key_path: Option<String>,
pub srtp_profiles: Vec<SrtpProfile>,
pub require_client_certificate: bool,
pub srtp_key: Option<Vec<u8>>,
}Expand description
Server security configuration
Fields§
§security_mode: SecurityModeSecurity mode to use
fingerprint_algorithm: StringDTLS fingerprint algorithm
certificate_path: Option<String>Path to certificate file (PEM format)
private_key_path: Option<String>Path to private key file (PEM format)
srtp_profiles: Vec<SrtpProfile>SRTP profiles supported (in order of preference)
require_client_certificate: boolWhether to require client certificate
srtp_key: Option<Vec<u8>>Pre-shared SRTP key (for SRTP mode)
Trait Implementations§
Source§impl Clone for ServerSecurityConfig
impl Clone for ServerSecurityConfig
Source§fn clone(&self) -> ServerSecurityConfig
fn clone(&self) -> ServerSecurityConfig
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 ServerSecurityConfig
impl Debug for ServerSecurityConfig
Auto Trait Implementations§
impl Freeze for ServerSecurityConfig
impl RefUnwindSafe for ServerSecurityConfig
impl Send for ServerSecurityConfig
impl Sync for ServerSecurityConfig
impl Unpin for ServerSecurityConfig
impl UnwindSafe for ServerSecurityConfig
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