Skip to main content

Ip4ModeData

Struct Ip4ModeData 

Source
#[repr(C)]
pub struct Ip4ModeData { pub is_started: Boolean, pub max_packet_size: u32, pub config_data: Ip4ConfigData, pub is_configured: Boolean, pub group_count: u32, pub group_table: *const Ipv4Address, pub route_count: u32, pub route_table: *const Ip4RouteTable, pub icmp_type_count: u32, pub icmp_type_list: *const Ip4IcmpType, }
Expand description

Fields§

§is_started: Boolean

Set to Boolean::TRUE after an associated Ipv4Protocol instance has been successfully configured.

§max_packet_size: u32

The maximum packet size, in bytes, of the packet which the upper layer driver could feed.

§config_data: Ip4ConfigData

Current configuration settings.

§is_configured: Boolean

Set to Boolean::TRUE when an associated Ipv4Protocol instance has a station address and subnet mask.

§group_count: u32

Number of joined multicast groups.

§group_table: *const Ipv4Address

List of joined multicast group addresses.

§route_count: u32

Number of entries in the routing table.

§route_table: *const Ip4RouteTable

Routing table entries.

§icmp_type_count: u32

Number of entries in the supported ICMP types list.

§icmp_type_list: *const Ip4IcmpType

Array of ICMP types and codes that are supported.

Trait Implementations§

Source§

impl Debug for Ip4ModeData

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Send for Ip4ModeData

§

impl !Sync for Ip4ModeData

§

impl Freeze for Ip4ModeData

§

impl RefUnwindSafe for Ip4ModeData

§

impl Unpin for Ip4ModeData

§

impl UnsafeUnpin for Ip4ModeData

§

impl UnwindSafe for Ip4ModeData

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.