pub trait UdpTransportExtension: HasContext {
    // Provided method
    fn create_udp_transport<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<UdpTransport>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

This trait adds a create_udp_transport method to any struct returning a Context. This is the case for an ockam::Node, so you can write node.create_udp_transport()

Provided Methods§

source

fn create_udp_transport<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<UdpTransport>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Create a UDP transport

Implementors§