pub enum TurnTlsConfig {
Rustls(*mut RiceTlsConfig),
Openssl(*mut RiceTlsConfig),
Dimpl(*mut RiceTlsConfig),
}Expand description
Configuration parameters for TURN use over (D)TLS.
Variants§
Rustls(*mut RiceTlsConfig)
Available on crate feature
rustls only.Rustls variant for TLS configuration.
Openssl(*mut RiceTlsConfig)
Available on crate feature
openssl only.Openssl variant for TLS configuration.
Dimpl(*mut RiceTlsConfig)
Available on crate feature
dimpl only.Dimpl variant for TLS configuration.
Implementations§
Source§impl TurnTlsConfig
impl TurnTlsConfig
Sourcepub fn new_rustls_with_dns(server_name: &str) -> Self
Available on crate feature rustls only.
pub fn new_rustls_with_dns(server_name: &str) -> Self
rustls only.Construct a new client Rustls TLS configuration with the specified server name.
Sourcepub fn new_rustls_with_ip(addr: &Address) -> Self
Available on crate feature rustls only.
pub fn new_rustls_with_ip(addr: &Address) -> Self
rustls only.Construct a new client Rustls TLS configuration with the specified ip.
Sourcepub fn new_openssl(transport: TransportType) -> Self
Available on crate feature openssl only.
pub fn new_openssl(transport: TransportType) -> Self
openssl only.Construct a new client OpenSSL TLS configuration with the specified transport.
Trait Implementations§
Source§impl Clone for TurnTlsConfig
impl Clone for TurnTlsConfig
Source§impl Debug for TurnTlsConfig
impl Debug for TurnTlsConfig
Auto Trait Implementations§
impl Freeze for TurnTlsConfig
impl RefUnwindSafe for TurnTlsConfig
impl !Send for TurnTlsConfig
impl !Sync for TurnTlsConfig
impl Unpin for TurnTlsConfig
impl UnsafeUnpin for TurnTlsConfig
impl UnwindSafe for TurnTlsConfig
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