Struct netstack3_core::ip::IpDeviceConfiguration
source · pub struct IpDeviceConfiguration {
pub gmp_enabled: bool,
pub forwarding_enabled: bool,
}
Expand description
Configurations common to all IP devices.
Fields§
§gmp_enabled: bool
Is a Group Messaging Protocol (GMP) enabled for this device?
If gmp_enabled
is false, multicast groups will still be added to
multicast_groups
, but we will not inform the network of our membership
in those groups using a GMP.
Default: false
.
forwarding_enabled: bool
A flag indicating whether forwarding of IP packets not destined for this device is enabled.
This flag controls whether or not packets can be forwarded from this device. That is, when a packet arrives at a device it is not destined for, the packet can only be forwarded if the device it arrived at has forwarding enabled and there exists another device that has a path to the packet’s destination, regardless of the other device’s forwarding ability.
Default: false
.
Trait Implementations§
source§impl AsMut<IpDeviceConfiguration> for Ipv4DeviceConfigurationAndFlags
impl AsMut<IpDeviceConfiguration> for Ipv4DeviceConfigurationAndFlags
source§fn as_mut(&mut self) -> &mut IpDeviceConfiguration
fn as_mut(&mut self) -> &mut IpDeviceConfiguration
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsMut<IpDeviceConfiguration> for Ipv6DeviceConfiguration
impl AsMut<IpDeviceConfiguration> for Ipv6DeviceConfiguration
source§fn as_mut(&mut self) -> &mut IpDeviceConfiguration
fn as_mut(&mut self) -> &mut IpDeviceConfiguration
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsMut<IpDeviceConfiguration> for Ipv6DeviceConfigurationAndFlags
impl AsMut<IpDeviceConfiguration> for Ipv6DeviceConfigurationAndFlags
source§fn as_mut(&mut self) -> &mut IpDeviceConfiguration
fn as_mut(&mut self) -> &mut IpDeviceConfiguration
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsRef<IpDeviceConfiguration> for Ipv4DeviceConfigurationAndFlags
impl AsRef<IpDeviceConfiguration> for Ipv4DeviceConfigurationAndFlags
source§fn as_ref(&self) -> &IpDeviceConfiguration
fn as_ref(&self) -> &IpDeviceConfiguration
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<IpDeviceConfiguration> for Ipv6DeviceConfiguration
impl AsRef<IpDeviceConfiguration> for Ipv6DeviceConfiguration
source§fn as_ref(&self) -> &IpDeviceConfiguration
fn as_ref(&self) -> &IpDeviceConfiguration
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<IpDeviceConfiguration> for Ipv6DeviceConfigurationAndFlags
impl AsRef<IpDeviceConfiguration> for Ipv6DeviceConfigurationAndFlags
source§fn as_ref(&self) -> &IpDeviceConfiguration
fn as_ref(&self) -> &IpDeviceConfiguration
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for IpDeviceConfiguration
impl Clone for IpDeviceConfiguration
source§fn clone(&self) -> IpDeviceConfiguration
fn clone(&self) -> IpDeviceConfiguration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for IpDeviceConfiguration
impl Debug for IpDeviceConfiguration
source§impl Default for IpDeviceConfiguration
impl Default for IpDeviceConfiguration
source§fn default() -> IpDeviceConfiguration
fn default() -> IpDeviceConfiguration
Returns the “default value” for a type. Read more
source§impl PartialEq for IpDeviceConfiguration
impl PartialEq for IpDeviceConfiguration
source§fn eq(&self, other: &IpDeviceConfiguration) -> bool
fn eq(&self, other: &IpDeviceConfiguration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for IpDeviceConfiguration
impl Eq for IpDeviceConfiguration
impl StructuralPartialEq for IpDeviceConfiguration
Auto Trait Implementations§
impl Freeze for IpDeviceConfiguration
impl RefUnwindSafe for IpDeviceConfiguration
impl Send for IpDeviceConfiguration
impl Sync for IpDeviceConfiguration
impl Unpin for IpDeviceConfiguration
impl UnwindSafe for IpDeviceConfiguration
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
source§fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
Handle a timer firing.