Struct packet_mreq

#[repr(C)]
pub struct packet_mreq { pub mr_ifindex: c_int, pub mr_type: c_ushort, pub mr_alen: c_ushort, pub mr_address: [c_uchar; 8] }

Fields

mr_ifindex: c_int
mr_type: c_ushort
mr_alen: c_ushort
mr_address: [c_uchar; 8]

Trait Implementations

impl Clone for packet_mreq

fn clone(&self) -> packet_mreq

impl Copy for packet_mreq

impl Debug for packet_mreq

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for packet_mreq

impl Hash for packet_mreq

fn hash<__H: Hasher>(&self, state: &mut __H)

impl PartialEq for packet_mreq

fn eq(&self, other: &packet_mreq) -> bool

impl StructuralPartialEq for packet_mreq

Auto Trait Implementations

impl Freeze for packet_mreq

impl RefUnwindSafe for packet_mreq

impl Send for packet_mreq

impl Sync for packet_mreq

impl Unpin for packet_mreq

impl UnsafeUnpin for packet_mreq

impl UnwindSafe for packet_mreq

Blanket Implementations

impl<T> Any for packet_mreq where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for packet_mreq where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for packet_mreq where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for packet_mreq where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for packet_mreq

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for packet_mreq where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for packet_mreq where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for packet_mreq where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>