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

The sender.

The receiver.

Methods

impl EtherPlug
[src]

[src]

Construct an ethernet 'wire' connection the two given plugs.

Trait Implementations

impl Debug for EtherPlug
[src]

[src]

Formats the value using the given formatter.