Enum smoltcp::phy::Medium [−][src]
pub enum Medium {
Ethernet,
Ip,
Ieee802154,
}
Expand description
Type of medium of a device.
Variants
Ethernet
Ethernet medium. Devices of this type send and receive Ethernet frames, and interfaces using it must do neighbor discovery via ARP or NDISC.
Examples of devices of this type are Ethernet, WiFi (802.11), Linux tap
, and VPNs in tap (layer 2) mode.
Ip
IP medium. Devices of this type send and receive IP frames, without an Ethernet header. MAC addresses are not used, and no neighbor discovery (ARP, NDISC) is done.
Examples of devices of this type are the Linux tun
, PPP interfaces, VPNs in tun (layer 3) mode.
Ieee802154
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Medium
impl UnwindSafe for Medium
Blanket Implementations
Mutably borrows from an owned value. Read more