Struct ethhdr
#[repr(C, packed(1))]
pub struct ethhdr { pub h_dest: [c_uchar; 6], pub h_source: [c_uchar; 6], pub h_proto: __be16 }
Fields
h_dest: [c_uchar; 6]h_source: [c_uchar; 6]h_proto: __be16
Trait Implementations
impl Clone for ethhdr
fn clone(&self) -> ethhdr
impl Copy for ethhdr
impl Debug for ethhdr
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl Freeze for ethhdr
impl RefUnwindSafe for ethhdr
impl Send for ethhdr
impl Sync for ethhdr
impl Unpin for ethhdr
impl UnsafeUnpin for ethhdr
impl UnwindSafe for ethhdr
Blanket Implementations
impl<T> Any for ethhdr
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ethhdr
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ethhdr
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ethhdr
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ethhdr
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for ethhdr
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ethhdr
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ethhdr
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>