Struct libc::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
pub rt_pad1: ::c_ulongpub rt_dst: ::sockaddrpub rt_gateway: ::sockaddrpub rt_genmask: ::sockaddrpub rt_flags: ::c_ushortpub rt_pad2: ::c_shortpub rt_pad3: ::c_ulongpub rt_tos: ::c_ucharpub rt_class: ::c_ucharpub rt_pad4: [::c_short; 3]pub rt_metric: ::c_shortpub rt_dev: *mut ::c_charpub rt_mtu: ::c_ulongpub rt_window: ::c_ulongpub rt_irtt: ::c_ushortTrait Implementations
impl Debug for rtentry
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl Hash for rtentry
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()impl StructuralEq for rtentryimpl StructuralPartialEq for rtentryAuto Trait Implementations
impl RefUnwindSafe for rtentryimpl UnwindSafe for rtentryBlanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T