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 = MockTlsStream
The 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 MockTlsConnector
impl Send for MockTlsConnector
impl Sync for MockTlsConnector
impl Unpin for MockTlsConnector
impl UnwindSafe for MockTlsConnector
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more