Enum pnet_datalink::ChannelType
source ·
[−]pub enum ChannelType {
Layer2,
Layer3(EtherType),
}
Expand description
Type of data link channel to present (Linux only).
Variants
Layer2
Send and receive layer 2 packets directly, including headers.
Layer3(EtherType)
Tuple Fields
0: EtherType
Send and receive “cooked” packets - send and receive network layer packets.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ChannelType
impl Send for ChannelType
impl Sync for ChannelType
impl Unpin for ChannelType
impl UnwindSafe for ChannelType
Blanket Implementations
Mutably borrows from an owned value. Read more