pub struct CombineNet {
pub tcp_connect: Net,
pub tcp_bind: Net,
pub udp_bind: Net,
}
Expand description
A new Net calls tcp_connect()
, tcp_bind()
, udp_bind()
from different Net.
Fields§
§tcp_connect: Net
§tcp_bind: Net
§udp_bind: Net
Trait Implementations§
Source§impl INet for CombineNet
impl INet for CombineNet
fn tcp_connect<'life0: 'a, 'life1: 'a, 'a>(
&'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,
fn udp_bind<'life0: 'a, 'life1: 'a, 'a>(
&'life0 self,
ctx: &'life1 mut Context,
addr: Address,
) -> BoxFuture<'a, Result<UdpSocket>>where
Self: 'a,
Auto Trait Implementations§
impl Freeze for CombineNet
impl !RefUnwindSafe for CombineNet
impl Send for CombineNet
impl Sync for CombineNet
impl Unpin for CombineNet
impl !UnwindSafe for CombineNet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more