Module socket

Source
Expand description

Device sockets.

Structs§

AllSockets
A collection of all device sockets in the system.
AnyDeviceSockets
The set of sockets associated with a device.
DeviceSocketApi
The device socket API.
DeviceSocketCounters
Usage statistics about Device Sockets.
DeviceSocketId
Reference to live socket state.
DeviceSocketMetadata
Metadata required to send a frame on a device socket.
DeviceSockets
Per-device state for packet sockets.
EthernetFrame
Data from an Ethernet frame.
EthernetHeaderParams
Parameters needed to apply system-framing of an Ethernet frame.
IpFrame
Data from an IP frame.
ParseSentFrameError
A frame couldn’t be parsed as a SentFrame.
PrimaryDeviceSocketId
Strong owner of socket state.
SocketInfo
Information about the bound state of a socket.
SocketState
State held by a device socket.
Target
A device socket’s binding information.
WeakDeviceSocketId
A weak reference to socket state.

Enums§

Frame
A frame sent or received on a device
Protocol
A selector for frames based on link-layer protocol number.
ReceivedFrame
A frame received on a device.
SentFrame
A frame sent on a device.
TargetDevice
Selector for devices to send and receive packets on.

Traits§

DeviceSocketAccessor
Core context for accessing the socket state for a device.
DeviceSocketBindingsContext
The execution context for device sockets provided by bindings.
DeviceSocketContext
Core context for accessing socket state.
DeviceSocketTypes
Provides associated types for device sockets provided by the bindings context.
SocketStateAccessor
Core context for accessing the state of an individual socket.

Type Aliases§

HeldDeviceSockets
Convenience alias for use in device state storage.
HeldSockets
Convenience alias for use in shared storage.
SocketId
Public identifier for a socket.