Enum tokio_websockets::tls::Connector
source · pub enum Connector {
Plain,
NativeTls(TlsConnector),
Rustls(TlsConnector),
}
Expand description
A reusable TLS connector for wrapping streams.
Variants§
Plain
Plain (non-TLS) connector.
NativeTls(TlsConnector)
Available on crate feature
native-tls
only.native-tls
TLS connector.
Rustls(TlsConnector)
Available on crate features
rustls-webpki-roots
or rustls-native-roots
only.rustls
TLS connector.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Connector
impl Send for Connector
impl Sync for Connector
impl Unpin for Connector
impl !UnwindSafe for Connector
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