Trait samotop::io::client::Connector [−][src]
Associated Types
Loading content...Required methods
pub fn connect<'s, 'c, 'a, C>(
&'s self,
configuration: &'c C
) -> Pin<Box<dyn Future<Output = Result<Self::Stream, Error>> + 'a + Send + Sync, Global>>ⓘ where
's: 'a,
'c: 'a,
C: ConnectionConfiguration,
[src]
&'s self,
configuration: &'c C
) -> Pin<Box<dyn Future<Output = Result<Self::Stream, Error>> + 'a + Send + Sync, Global>>ⓘ where
's: 'a,
'c: 'a,
C: ConnectionConfiguration,
This provider of connectivity takes care of resolving given address (which could be an IP, FQDN, URL...), establishing a connection and enabling (or not) TLS upgrade.
Implementors
impl<TLS> Connector for TcpConnector<TLS> where
TLS: TlsProvider + Sync + Send + 'static,
[src]
TLS: TlsProvider + Sync + Send + 'static,
type Stream = TlsCapable
pub fn connect<'s, 'c, 'a, C>(
&'s self,
configuration: &'c C
) -> Pin<Box<dyn Future<Output = Result<<TcpConnector<TLS> as Connector>::Stream, Error>> + 'a + Send + Sync, Global>>ⓘ where
's: 'a,
'c: 'a,
C: ConnectionConfiguration + Sync,
[src]
&'s self,
configuration: &'c C
) -> Pin<Box<dyn Future<Output = Result<<TcpConnector<TLS> as Connector>::Stream, Error>> + 'a + Send + Sync, Global>>ⓘ where
's: 'a,
'c: 'a,
C: ConnectionConfiguration + Sync,
This provider of connectivity takes care of resolving given address (which could be an IP, FQDN, URL...), establishing a connection and enabling (or not) TLS upgrade.
impl<TLS> Connector for UnixConnector<TLS> where
TLS: TlsProvider + Sync + Send + 'static,
[src]
TLS: TlsProvider + Sync + Send + 'static,
type Stream = TlsCapable
pub fn connect<'s, 'c, 'a, C>(
&'s self,
configuration: &'c C
) -> Pin<Box<dyn Future<Output = Result<<UnixConnector<TLS> as Connector>::Stream, Error>> + 'a + Send + Sync, Global>>ⓘ where
's: 'a,
'c: 'a,
C: ConnectionConfiguration + Sync,
[src]
&'s self,
configuration: &'c C
) -> Pin<Box<dyn Future<Output = Result<<UnixConnector<TLS> as Connector>::Stream, Error>> + 'a + Send + Sync, Global>>ⓘ where
's: 'a,
'c: 'a,
C: ConnectionConfiguration + Sync,
This provider of connectivity takes care of resolving given address (which could be an IP, FQDN, URL...), establishing a connection and enabling (or not) TLS upgrade.