Trait ockam::TcpTransportExtension
source · pub trait TcpTransportExtension: HasContext {
// Provided method
fn create_tcp_transport<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<TcpTransport, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: Sync + '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, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
fn create_tcp_transport<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<TcpTransport, Error>> + Send + 'async_trait>>where 'life0: 'async_trait, Self: Sync + 'async_trait,
Create a TCP transport