Enum atsame70n21b::gmac::gmac_st2cw::st2cw1::OFFSSTRTSELECT_A
source · #[repr(u8)]pub enum OFFSSTRTSELECT_A {
FRAMESTART = 0,
ETHERTYPE = 1,
IP = 2,
TCP_UDP = 3,
}
Expand description
Ethernet Frame Offset Start
Value on reset: 0
Variants§
FRAMESTART = 0
0: Offset from the start of the frame
ETHERTYPE = 1
1: Offset from the byte after the EtherType field
IP = 2
2: Offset from the byte after the IP header field
TCP_UDP = 3
3: Offset from the byte after the TCP/UDP header field
Trait Implementations§
source§impl Clone for OFFSSTRTSELECT_A
impl Clone for OFFSSTRTSELECT_A
source§fn clone(&self) -> OFFSSTRTSELECT_A
fn clone(&self) -> OFFSSTRTSELECT_A
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 OFFSSTRTSELECT_A
impl Debug for OFFSSTRTSELECT_A
source§impl From<OFFSSTRTSELECT_A> for u8
impl From<OFFSSTRTSELECT_A> for u8
source§fn from(variant: OFFSSTRTSELECT_A) -> Self
fn from(variant: OFFSSTRTSELECT_A) -> Self
Converts to this type from the input type.
source§impl PartialEq for OFFSSTRTSELECT_A
impl PartialEq for OFFSSTRTSELECT_A
source§fn eq(&self, other: &OFFSSTRTSELECT_A) -> bool
fn eq(&self, other: &OFFSSTRTSELECT_A) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for OFFSSTRTSELECT_A
impl Eq for OFFSSTRTSELECT_A
impl StructuralEq for OFFSSTRTSELECT_A
impl StructuralPartialEq for OFFSSTRTSELECT_A
Auto Trait Implementations§
impl RefUnwindSafe for OFFSSTRTSELECT_A
impl Send for OFFSSTRTSELECT_A
impl Sync for OFFSSTRTSELECT_A
impl Unpin for OFFSSTRTSELECT_A
impl UnwindSafe for OFFSSTRTSELECT_A
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