Struct csp_iface_s

Source
#[repr(C)]
pub struct csp_iface_s {
Show 18 fields pub addr: u16, pub netmask: u16, pub name: *const c_char, pub interface_data: *mut c_void, pub driver_data: *mut c_void, pub nexthop: nexthop_t, pub is_default: u8, pub tx: u32, pub rx: u32, pub tx_error: u32, pub rx_error: u32, pub drop: u32, pub autherr: u32, pub frame: u32, pub txbytes: u32, pub rxbytes: u32, pub irq: u32, pub next: *mut csp_iface_s,
}
Expand description

This struct is referenced in documentation. Update doc when you change this.

Fields§

§addr: u16

< Host address on this subnet

§netmask: u16

< Subnet mask

§name: *const c_char

< Name, max compare length is #CSP_IFLIST_NAME_MAX

§interface_data: *mut c_void

< Interface data, only known/used by the interface layer, e.g. state information.

§driver_data: *mut c_void

< Driver data, only known/used by the driver layer, e.g. device/channel references.

§nexthop: nexthop_t

< Next hop (Tx) function

§is_default: u8

< Set default IF flag (CSP supports multiple defaults)

§tx: u32

< Successfully transmitted packets

§rx: u32

< Successfully received packets

§tx_error: u32

< Transmit errors (packets)

§rx_error: u32

< Receive errors, e.g. too large message

§drop: u32

< Dropped packets

§autherr: u32

< Authentication errors (packets)

§frame: u32

< Frame format errors (packets)

§txbytes: u32

< Transmitted bytes

§rxbytes: u32

< Received bytes

§irq: u32

< Interrupts

§next: *mut csp_iface_s

Trait Implementations§

Source§

impl Clone for csp_iface_s

Source§

fn clone(&self) -> csp_iface_s

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for csp_iface_s

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for csp_iface_s

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for csp_iface_s

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

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

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.