#[non_exhaustive]pub enum EthernetProtocol {
Show 103 variants
Loop,
Pup,
Pupat,
Tsn,
Erspan2,
Ip,
X25,
Arp,
Bpq,
IeeePup,
IeeePupat,
Batman,
Dec,
DnaDl,
DnaRc,
DnaRt,
Lat,
Diag,
Cust,
Sca,
Teb,
Rarp,
Atalk,
Aarp,
E8021Q,
Erspan,
Ipx,
Ipv6,
Pause,
Slow,
Wccp,
MplsUc,
MplsMc,
Atmmpoa,
PppDisc,
PppSes,
LinkCtl,
Atmfate,
Pae,
Profinet,
Realtek,
Aoe,
Ethercat,
E8021Ad,
E802Ex1,
MxlGsw,
Preauth,
Tipc,
Lldp,
Mrp,
Macsec,
E8021Ah,
Mvrp,
E1588,
Ncsi,
Prp,
Cfm,
Fcoe,
Iboe,
Tdls,
Fip,
E80221,
Hsr,
Nsh,
Loopback,
Qinq1,
Qinq2,
Qinq3,
Yt921x,
Edsa,
Dsa8021Q,
DsaA5psw,
Ife,
AfIucv,
E802_3,
Ax25,
All,
E802_2,
Snap,
Ddcmp,
WanPpp,
PppMp,
Localtalk,
Can,
Canfd,
Canxl,
Ppptalk,
Tr802_2,
Mobitex,
Control,
Irda,
Econet,
Hdlc,
Arcnet,
Dsa,
Trailer,
Phonet,
Ieee802154,
Caif,
Xdsa,
Map,
Mctp,
Other(u16),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Loop
Pup
Pupat
Tsn
Erspan2
Ip
X25
Arp
Bpq
IeeePup
IeeePupat
Batman
Dec
DnaDl
DnaRc
DnaRt
Lat
Diag
Cust
Sca
Teb
Rarp
Atalk
Aarp
E8021Q
Erspan
Ipx
Ipv6
Pause
Slow
Wccp
MplsUc
MplsMc
Atmmpoa
PppDisc
PppSes
LinkCtl
Atmfate
Pae
Profinet
Realtek
Aoe
Ethercat
E8021Ad
E802Ex1
MxlGsw
Preauth
Tipc
Lldp
Mrp
Macsec
E8021Ah
Mvrp
E1588
Ncsi
Prp
Cfm
Fcoe
Iboe
Tdls
Fip
E80221
Hsr
Nsh
Loopback
Qinq1
Qinq2
Qinq3
Yt921x
Edsa
Dsa8021Q
DsaA5psw
Ife
AfIucv
E802_3
Ax25
All
E802_2
Snap
Ddcmp
WanPpp
PppMp
Localtalk
Can
Canfd
Canxl
Ppptalk
Tr802_2
Mobitex
Control
Irda
Econet
Hdlc
Arcnet
Dsa
Trailer
Phonet
Ieee802154
Caif
Xdsa
Map
Mctp
Other(u16)
Implementations§
Trait Implementations§
Source§impl Clone for EthernetProtocol
impl Clone for EthernetProtocol
Source§fn clone(&self) -> EthernetProtocol
fn clone(&self) -> EthernetProtocol
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EthernetProtocol
Source§impl Debug for EthernetProtocol
impl Debug for EthernetProtocol
Source§impl Display for EthernetProtocol
impl Display for EthernetProtocol
impl Eq for EthernetProtocol
Source§impl From<EthernetProtocol> for u16
impl From<EthernetProtocol> for u16
Source§fn from(v: EthernetProtocol) -> u16
fn from(v: EthernetProtocol) -> u16
Converts to this type from the input type.
Source§impl From<u16> for EthernetProtocol
impl From<u16> for EthernetProtocol
Source§impl PartialEq for EthernetProtocol
impl PartialEq for EthernetProtocol
impl StructuralPartialEq for EthernetProtocol
Auto Trait Implementations§
impl Freeze for EthernetProtocol
impl RefUnwindSafe for EthernetProtocol
impl Send for EthernetProtocol
impl Sync for EthernetProtocol
impl Unpin for EthernetProtocol
impl UnsafeUnpin for EthernetProtocol
impl UnwindSafe for EthernetProtocol
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