pub trait StreamUpgrade: Stream {
// Required methods
fn secure_upgrade(
&mut self,
) -> impl Future<Output = Result<(), SslError>> + Send;
fn handshake(&self) -> Option<&TlsHandshake>;
}Required Methods§
fn secure_upgrade( &mut self, ) -> impl Future<Output = Result<(), SslError>> + Send
fn handshake(&self) -> Option<&TlsHandshake>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.