Expand description
Netstack3 core device layer.
This crate contains the device layer for netstack3.
Modules§
- blackhole
- Blackhole devices.
- ethernet
- Ethernet devices.
- loopback
- Loopback devices.
- marker
- Marker traits controlling Device context behavior.
- pure_ip
- Pure IP devices.
- queue
- Device RX and TX queueing.
- socket
- Device sockets.
Macros§
- for_
any_ device_ id - Evaluates the expression for the given device_id, regardless of its variant.
Structs§
- ArpConfiguration
- Device ARP configuration.
- ArpConfiguration
Update - An update to apply to ARP configurations.
- ArpCounters
- Counters for the ARP layer.
- ArpNud
Ctx - Provides a [
NudContext
] IPv4 implementation for a core context that implementsArpContext
. - ArpState
- The state associated with an instance of the Address Resolution Protocol (ARP).
- Base
Device Id - A base device identifier.
- Device
AnyApi - The device API interacting with any kind of supported device.
- Device
Api - The device API.
- Device
Configuration - Device link layer configuration.
- Device
Configuration Update - An update to apply to device configurations.
- Device
Counters - Device layer counters.
- Device
Layer State - The state associated with the device layer.
- Device
Layer Timer Id - The identifier for timer events in the device layer.
- Devices
- The collection of devices within
DeviceLayerState
. - Devices
Iter - Iterator over devices.
- IpLink
Device State Inner - State for a link-device that is also an IP device.
- NdpConfiguration
- Device NDP configuration.
- NdpConfiguration
Update - An update to apply to NDP configurations.
- Origin
Tracker - Light-weight tracker for recording the source of some instance.
Enums§
- Device
Configuration Update Error - Errors observed updating device configuration.
- Device
Id - A strong ID identifying a device.
- Device
Send Frame Error - An error encountered when sending a frame.
- Ipv6
Device Link Layer Addr - Supported link layer address types for IPv6.
- Weak
Device Id - A weak ID identifying a device.
Traits§
- ArpConfig
Context - An execution context for the ARP protocol that allows accessing configuration parameters.
- ArpContext
- An execution context for the ARP protocol.
- ArpSender
Context - An execution context for the ARP protocol that allows sending IP packets to specific neighbors.
- Device
Class Matcher - Provides matching functionality for the device class of a device installed in the netstack.
- Device
Collection Context - A context providing facilities to store and remove primary device IDs.
- Device
Configuration Context - A trait abstracting device configuration.
- Device
IdAnd Name Matcher - Provides matching functionality for the ID and name of a device installed in the netstack.
- Device
Layer Event Dispatcher - An event dispatcher for the device layer.
- Device
Layer State Types - Provides associated types used in the device layer.
- Device
Layer Types - Provides associated types used in the device layer.
- Device
Provider - Provides the
Device
type for each device domain. - Device
State Spec - Provides the specifications for device state held by [
BaseDeviceId
] in [BaseDeviceState
]. - Origin
Tracker Context - A trait abstracting a context containing an
OriginTracker
.
Type Aliases§
- IpLink
Device State - A convenience wrapper around
IpLinkDeviceStateInner
that usesDeviceStateSpec
to extract the link state type and make type signatures shorter.