Skip to main content

Ip4ConfigData

Struct Ip4ConfigData 

Source
#[repr(C)]
pub struct Ip4ConfigData {
Show 14 fields pub default_protocol: u8, pub accept_any_protocol: Boolean, pub accept_icmp_errors: Boolean, pub accept_broadcast: Boolean, pub accept_promiscuous: Boolean, pub use_default_address: Boolean, pub station_address: Ipv4Address, pub subnet_mask: Ipv4Address, pub type_of_service: u8, pub time_to_live: u8, pub do_not_fragment: Boolean, pub raw_data: Boolean, pub receive_timeout: u32, pub transmit_timeout: u32,
}

Fields§

§default_protocol: u8§accept_any_protocol: Boolean

Set to TRUE to receive all IPv4 packets.

§accept_icmp_errors: Boolean

Set to TRUE to receive ICMP error packets.

§accept_broadcast: Boolean

Set to TRUE to receive broadcast IPv4 packets.

§accept_promiscuous: Boolean

Set to TRUE to receive all IPv4 packets in promiscuous mode.

§use_default_address: Boolean

Set to TRUE to use the default IPv4 address and routing table.

§station_address: Ipv4Address

Station IPv4 address.

§subnet_mask: Ipv4Address

Subnet mask for the station address.

§type_of_service: u8

Type of service field in transmitted IPv4 packets.

§time_to_live: u8

Time to live field in transmitted IPv4 packets.

§do_not_fragment: Boolean

Set to TRUE to disable fragmentation.

§raw_data: Boolean

Set to TRUE to enable raw data mode.

§receive_timeout: u32

Receive timeout in milliseconds.

§transmit_timeout: u32

Transmit timeout in milliseconds.

Trait Implementations§

Source§

impl Debug for Ip4ConfigData

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Ip4ConfigData

§

impl RefUnwindSafe for Ip4ConfigData

§

impl Send for Ip4ConfigData

§

impl Sync for Ip4ConfigData

§

impl Unpin for Ip4ConfigData

§

impl UnsafeUnpin for Ip4ConfigData

§

impl UnwindSafe for Ip4ConfigData

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.