#[repr(u32)]pub enum eth_frame_crc_status_t {
Eth_Frame_CRC_Match = 0,
Eth_Frame_CRC_Mismatch = 1,
Eth_Frame_CRC_Unknown = 2,
}
Expand description
- Eth_Frame_CRC_Match means that the frame contents are correct. The CRC field in the frame should not be relied upon as its computation may have been skipped for optimization, and it may contain any value, including zero, a random value or a correctly computed CRC.
- Eth_Frame_CRC_Mismatch means that the frame contents are incorrect. The CRC field in the frame must contain a CRC that does not match the frame contents, i.e., to send an incorrect frame on the link, you must make sure that the CRC field will not match when computed.
- Eth_Frame_CRC_Unknown means that the relation between the frame contents and the CRC field is unknown. The relation can be established by computing the frame's CRC and comparing it to the frame's CRC field.
Variants§
Trait Implementations§
source§impl Clone for eth_frame_crc_status_t
impl Clone for eth_frame_crc_status_t
source§fn clone(&self) -> eth_frame_crc_status_t
fn clone(&self) -> eth_frame_crc_status_t
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 eth_frame_crc_status_t
impl Debug for eth_frame_crc_status_t
source§impl Hash for eth_frame_crc_status_t
impl Hash for eth_frame_crc_status_t
source§impl Ord for eth_frame_crc_status_t
impl Ord for eth_frame_crc_status_t
source§fn cmp(&self, other: ð_frame_crc_status_t) -> Ordering
fn cmp(&self, other: ð_frame_crc_status_t) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for eth_frame_crc_status_t
impl PartialEq for eth_frame_crc_status_t
source§impl PartialOrd for eth_frame_crc_status_t
impl PartialOrd for eth_frame_crc_status_t
impl Copy for eth_frame_crc_status_t
impl Eq for eth_frame_crc_status_t
impl StructuralPartialEq for eth_frame_crc_status_t
Auto Trait Implementations§
impl Freeze for eth_frame_crc_status_t
impl RefUnwindSafe for eth_frame_crc_status_t
impl Send for eth_frame_crc_status_t
impl Sync for eth_frame_crc_status_t
impl Unpin for eth_frame_crc_status_t
impl UnwindSafe for eth_frame_crc_status_t
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)