Trait rd_interface::INet [−][src]
pub trait INet: Unpin + Send + Sync { #[must_use] fn tcp_connect<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut Context,
addr: Address
) -> Pin<Box<dyn Future<Output = Result<TcpStream>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; #[must_use] fn tcp_bind<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut Context,
addr: Address
) -> Pin<Box<dyn Future<Output = Result<TcpListener>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; #[must_use] fn udp_bind<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut Context,
addr: Address
) -> Pin<Box<dyn Future<Output = Result<UdpSocket>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; }
Expand description
A Net.
Required methods
#[must_use]fn tcp_connect<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut Context,
addr: Address
) -> Pin<Box<dyn Future<Output = Result<TcpStream>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn tcp_connect<'life0, 'life1, 'async_trait>(&'life0 self,
ctx: &'life1 mut Context,
addr: Address
) -> Pin<Box<dyn Future<Output = Result<TcpStream>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn tcp_bind<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut Context,
addr: Address
) -> Pin<Box<dyn Future<Output = Result<TcpListener>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn tcp_bind<'life0, 'life1, 'async_trait>(&'life0 self,
ctx: &'life1 mut Context,
addr: Address
) -> Pin<Box<dyn Future<Output = Result<TcpListener>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn udp_bind<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut Context,
addr: Address
) -> Pin<Box<dyn Future<Output = Result<UdpSocket>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn udp_bind<'life0, 'life1, 'async_trait>(&'life0 self,
ctx: &'life1 mut Context,
addr: Address
) -> Pin<Box<dyn Future<Output = Result<UdpSocket>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Implementors
impl INet for CombineNet
[src]
impl INet for CombineNet
[src]fn tcp_connect<'life0: 'a, 'life1: 'a, 'a>(
&'life0 self,
ctx: &'life1 mut Context,
addr: Address
) -> BoxFuture<'a, Result<TcpStream>> where
Self: 'a,
[src]
&'life0 self,
ctx: &'life1 mut Context,
addr: Address
) -> BoxFuture<'a, Result<TcpStream>> where
Self: 'a,
fn tcp_bind<'life0: 'a, 'life1: 'a, 'a>(
&'life0 self,
ctx: &'life1 mut Context,
addr: Address
) -> BoxFuture<'a, Result<TcpListener>> where
Self: 'a,
[src]
&'life0 self,
ctx: &'life1 mut Context,
addr: Address
) -> BoxFuture<'a, Result<TcpListener>> where
Self: 'a,
fn udp_bind<'life0: 'a, 'life1: 'a, 'a>(
&'life0 self,
ctx: &'life1 mut Context,
addr: Address
) -> BoxFuture<'a, Result<UdpSocket>> where
Self: 'a,
[src]
&'life0 self,
ctx: &'life1 mut Context,
addr: Address
) -> BoxFuture<'a, Result<UdpSocket>> where
Self: 'a,
impl INet for NotImplementedNet
[src]
impl INet for NotImplementedNet
[src]fn tcp_connect<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 mut Context,
_addr: Address
) -> Pin<Box<dyn Future<Output = Result<TcpStream>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_ctx: &'life1 mut Context,
_addr: Address
) -> Pin<Box<dyn Future<Output = Result<TcpStream>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn tcp_bind<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 mut Context,
_addr: Address
) -> Pin<Box<dyn Future<Output = Result<TcpListener>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_ctx: &'life1 mut Context,
_addr: Address
) -> Pin<Box<dyn Future<Output = Result<TcpListener>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn udp_bind<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 mut Context,
_addr: Address
) -> Pin<Box<dyn Future<Output = Result<UdpSocket>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_ctx: &'life1 mut Context,
_addr: Address
) -> Pin<Box<dyn Future<Output = Result<UdpSocket>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,