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-native-roots
or rustls-webpki-roots
or rustls-platform-verifier
or rustls-bring-your-own-connector
only.rustls
TLS connector.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Connector
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