pub enum TurnTlsConfig {
Rustls(*mut RiceTlsConfig),
Openssl(*mut RiceTlsConfig),
}Expand description
Configuration parameters for TURN use over (D)TLS.
Variants§
Rustls(*mut RiceTlsConfig)
Rustls variant for TLS configuration.
Openssl(*mut RiceTlsConfig)
Openssl variant for TLS configuration.
Implementations§
Source§impl TurnTlsConfig
impl TurnTlsConfig
Sourcepub fn new_rustls_with_dns(server_name: &str) -> Self
pub fn new_rustls_with_dns(server_name: &str) -> Self
Construct a new client Rustls TLS configuration with the specified server name.
Sourcepub fn new_rustls_with_ip(addr: &Address) -> Self
pub fn new_rustls_with_ip(addr: &Address) -> Self
Construct a new client Rustls TLS configuration with the specified ip.
Sourcepub fn new_openssl(transport: TransportType) -> Self
pub fn new_openssl(transport: TransportType) -> Self
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 UnwindSafe for TurnTlsConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)