pub fn is_encrypted(&self) -> bool {
        self.stream
            .as_ref()
            .map(|s| s.get_ref().is_encrypted())
            .unwrap_or(false)
    }
/// Tells if the underlying stream is currently encrypted
Tells if the underlying stream is currently encrypted
Tells if the underlying stream is currently encrypted
pub fn is_encrypted(&self) -> bool {
        self.stream
            .as_ref()
            .map(|s| s.get_ref().is_encrypted())
            .unwrap_or(false)
    }
pub fn is_encrypted ( & self ) -> bool { self . stream . as_ref ( ) . map ( | s | s . get_ref ( ) . is_encrypted ( ) ) . unwrap_or ( false ) }
Tells if the underlying stream is currently encrypted
Tells if the underlying stream is currently encrypted
&self
&self