Struct tor_rtmock::net::MockTlsConnector [−][src]
pub struct MockTlsConnector { /* fields omitted */ }Expand description
Mock TLS connector for use with MockNetProvider.
Note that no TLS is actually performed here: connections are simply told that they succeeded with a given certificate.
Trait Implementations
type Conn = MockTlsStream
type Conn = MockTlsStreamThe type of connection returned by this connector
fn connect_unvalidated<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
addr: &'life1 SocketAddr,
_sni_hostname: &'life2 str
) -> Pin<Box<dyn Future<Output = IoResult<MockTlsStream>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn connect_unvalidated<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
addr: &'life1 SocketAddr,
_sni_hostname: &'life2 str
) -> Pin<Box<dyn Future<Output = IoResult<MockTlsStream>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait, Launch a TLS-over-TCP connection to a given address. Read more
Auto Trait Implementations
impl RefUnwindSafe for MockTlsConnectorimpl Send for MockTlsConnectorimpl Sync for MockTlsConnectorimpl Unpin for MockTlsConnectorimpl UnwindSafe for MockTlsConnectorBlanket Implementations
Mutably borrows from an owned value. Read more