Struct netsim::wire::EtherPlug
[−]
[src]
pub struct EtherPlug { pub tx: UnboundedSender<EtherFrame>, pub rx: UnboundedReceiver<EtherFrame>, }
An ethernet connection, used to send/receive ethernet frames to/from the plug at the other end.
Fields
tx: UnboundedSender<EtherFrame>
The sender.
rx: UnboundedReceiver<EtherFrame>
The receiver.
Methods
impl EtherPlug
[src]
fn new_wire() -> (EtherPlug, EtherPlug)
[src]
Construct an ethernet 'wire' connection the two given plugs.