pub trait TcpTransportExtension: HasContext {
// Provided method
fn create_tcp_transport<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<TcpTransport>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
This trait adds a create_tcp_transport
method to any struct returning a Context.
This is the case for an ockam::Node, so you can write node.create_tcp_transport()
Provided Methods§
sourcefn create_tcp_transport<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<TcpTransport>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn create_tcp_transport<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<TcpTransport>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Create a TCP transport