Trait samotop::io::client::tls::TlsUpgrade[][src]

pub trait TlsUpgrade: Send + Sync {
    pub fn upgrade_to_tls(
        &self,
        stream: Box<dyn Io + 'static, Global>,
        name: String
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Io + 'static, Global>, Error>> + 'static + Send + Sync, Global>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
; }

Required methods

pub fn upgrade_to_tls(
    &self,
    stream: Box<dyn Io + 'static, Global>,
    name: String
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Io + 'static, Global>, Error>> + 'static + Send + Sync, Global>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
[src]

Loading content...

Implementors

impl TlsUpgrade for Impossible[src]

impl TlsUpgrade for RustlsProvider<TlsAcceptor>[src]

impl TlsUpgrade for RustlsProvider<TlsConnector>[src]

Loading content...