Struct rtentry

#[repr(C)]
pub struct rtentry { pub rt_pad1: c_ulong, pub rt_dst: sockaddr, pub rt_gateway: sockaddr, pub rt_genmask: sockaddr, pub rt_flags: c_ushort, pub rt_pad2: c_short, pub rt_pad3: c_ulong, pub rt_tos: c_uchar, pub rt_class: c_uchar, pub rt_pad4: [c_short; 3], pub rt_metric: c_short, pub rt_dev: *mut c_char, pub rt_mtu: c_ulong, pub rt_window: c_ulong, pub rt_irtt: c_ushort }

Fields

rt_pad1: c_ulong
rt_dst: sockaddr
rt_gateway: sockaddr
rt_genmask: sockaddr
rt_flags: c_ushort
rt_pad2: c_short
rt_pad3: c_ulong
rt_tos: c_uchar
rt_class: c_uchar
rt_pad4: [c_short; 3]
rt_metric: c_short
rt_dev: *mut c_char
rt_mtu: c_ulong
rt_window: c_ulong
rt_irtt: c_ushort

Trait Implementations

impl Clone for rtentry

fn clone(&self) -> rtentry

impl Copy for rtentry

impl Debug for rtentry

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

impl Eq for rtentry

impl Hash for rtentry

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

impl PartialEq for rtentry

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

impl StructuralPartialEq for rtentry

Auto Trait Implementations

impl !Send for rtentry

impl !Sync for rtentry

impl Freeze for rtentry

impl RefUnwindSafe for rtentry

impl Unpin for rtentry

impl UnsafeUnpin for rtentry

impl UnwindSafe for rtentry

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for rtentry

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for rtentry 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 rtentry where U: Into<T>,

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

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

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