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)
Send and receive “cooked” packets - send and receive network layer packets.
Trait Implementations§
source§impl Clone for ChannelType
impl Clone for ChannelType
source§fn clone(&self) -> ChannelType
fn clone(&self) -> ChannelType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ChannelType
impl Debug for ChannelType
source§impl Hash for ChannelType
impl Hash for ChannelType
source§impl PartialEq for ChannelType
impl PartialEq for ChannelType
source§fn eq(&self, other: &ChannelType) -> bool
fn eq(&self, other: &ChannelType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ChannelType
impl Eq for ChannelType
impl StructuralPartialEq for ChannelType
Auto Trait Implementations§
impl Freeze for ChannelType
impl RefUnwindSafe for ChannelType
impl Send for ChannelType
impl Sync for ChannelType
impl Unpin for ChannelType
impl UnwindSafe for ChannelType
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