kos_sys::os::net

Struct netif_t

Source
#[repr(C)]
pub struct netif_t {
Show 30 fields pub le_next: *mut netif_t, pub le_prev: *mut *mut netif_t, pub name: *const c_char, pub descr: *const c_char, pub index: c_int, pub dev_id: u32, pub flags: u32, pub mac_addr: [u8; 6], pub ip_addr: [u8; 4], pub netmask: [u8; 4], pub gateway: [u8; 4], pub broadcast: [u8; 4], pub dns: [u8; 4], pub mtu: c_int, pub ip6_lladdr: in6_addr, pub ip6_addrs: *mut in6_addr, pub ip6_addr_count: c_int, pub ip6_gateway: in6_addr, pub mtu6: u32, pub hop_limit: c_int, pub if_detect: Option<unsafe extern "C" fn(netif: *mut netif_t) -> c_int>, pub if_init: Option<unsafe extern "C" fn(netif: *mut netif_t) -> c_int>, pub if_shutdown: Option<unsafe extern "C" fn(netif: *mut netif_t) -> c_int>, pub if_start: Option<unsafe extern "C" fn(netif: *mut netif_t) -> c_int>, pub if_stop: Option<unsafe extern "C" fn(netif: *mut netif_t) -> c_int>, pub if_tx: Option<unsafe extern "C" fn(netif: *mut netif_t, data: *const u8, len: c_int, blocking: c_int) -> c_int>, pub if_tx_commit: Option<unsafe extern "C" fn(netif: *mut netif_t) -> c_int>, pub if_rx_poll: Option<unsafe extern "C" fn(netif: *mut netif_t) -> c_int>, pub if_set_flags: Option<unsafe extern "C" fn(netif: *mut netif_t, flags_and: u32, flags_or: u32) -> c_int>, pub if_set_mc: Option<unsafe extern "C" fn(netif: *mut netif_t, list: *const u8, count: c_int) -> c_int>,
}

Fields§

§le_next: *mut netif_t§le_prev: *mut *mut netif_t§name: *const c_char§descr: *const c_char§index: c_int§dev_id: u32§flags: u32§mac_addr: [u8; 6]§ip_addr: [u8; 4]§netmask: [u8; 4]§gateway: [u8; 4]§broadcast: [u8; 4]§dns: [u8; 4]§mtu: c_int§ip6_lladdr: in6_addr§ip6_addrs: *mut in6_addr§ip6_addr_count: c_int§ip6_gateway: in6_addr§mtu6: u32§hop_limit: c_int§if_detect: Option<unsafe extern "C" fn(netif: *mut netif_t) -> c_int>§if_init: Option<unsafe extern "C" fn(netif: *mut netif_t) -> c_int>§if_shutdown: Option<unsafe extern "C" fn(netif: *mut netif_t) -> c_int>§if_start: Option<unsafe extern "C" fn(netif: *mut netif_t) -> c_int>§if_stop: Option<unsafe extern "C" fn(netif: *mut netif_t) -> c_int>§if_tx: Option<unsafe extern "C" fn(netif: *mut netif_t, data: *const u8, len: c_int, blocking: c_int) -> c_int>§if_tx_commit: Option<unsafe extern "C" fn(netif: *mut netif_t) -> c_int>§if_rx_poll: Option<unsafe extern "C" fn(netif: *mut netif_t) -> c_int>§if_set_flags: Option<unsafe extern "C" fn(netif: *mut netif_t, flags_and: u32, flags_or: u32) -> c_int>§if_set_mc: Option<unsafe extern "C" fn(netif: *mut netif_t, list: *const u8, count: c_int) -> c_int>

Auto Trait Implementations§

§

impl Freeze for netif_t

§

impl RefUnwindSafe for netif_t

§

impl !Send for netif_t

§

impl !Sync for netif_t

§

impl Unpin for netif_t

§

impl UnwindSafe for netif_t

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

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

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

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

Performs the conversion.