Crate netstack3_datagram

Source
Expand description

Netstack3 core Datagram sockets.

This crate contains the shared base implementation between UDP and ICMP Echo sockets.

Structs§

BoundSocketState
State associated with a Bound Socket.
ConnInfo
Information associated with a datagram connection.
ConnState
State associated with a connected socket.
DatagramApi
The shared datagram socket API.
DatagramFlowId
Identifies a flow for a datagram socket.
DatagramIpSpecificSocketOptions
A datagram socket’s options.
DatagramSocketSet
A set containing all datagram sockets for a given implementation.
ExpectedConnError
A connected socket was expected.
ExpectedUnboundError
An unbound socket was expected.
InUseError
The error returned when an identifier (i.e.) port is already in use.
IpOptions
A datagram socket’s IP options.
ListenerInfo
Information associated with a datagram listener.
ReferenceState
Top-level struct kept in datagram socket references.
TxMetadata
The tx metadata associated with a datagram socket.
WrapOtherStackIpOptions
A wrapper to make [DualStackIpExt::OtherStackIpOptions] GenericOverIp.
WrapOtherStackIpOptionsMut
A wrapper to make [DualStackIpExt::OtherStackIpOptions] GenericOverIp.

Enums§

BoundSocketStateType
State for the sub-types of bound socket (e.g. Listener or Connected).
ConnectError
An error when attempting to create a datagram socket.
DualStackConnState
Connection state belong to either this-stack or the other-stack.
EitherIpSocket
An IP Socket ID that is either Ipv4 or Ipv6.
MulticastInterfaceSelector
Selector for the device to affect when changing multicast settings.
MulticastMembershipInterfaceSelector
Selector for the device to use when changing multicast membership settings.
SendError
Error encountered when sending a datagram on a socket.
SendToError
An error encountered while sending a datagram packet to an alternate address.
SetMulticastMembershipError
Error resulting from attempting to change multicast membership settings for a socket.
SocketInfo
Information about the addresses for a socket.
SocketState
A datagram socket’s state.

Traits§

DatagramBindingsContext
Blanket trait for bindings context requirements for datagram sockets.
DatagramBindingsTypes
A marker trait for bindings types traits used by datagram.
DatagramBoundStateContext
The core context providing access to bound datagram sockets.
DatagramSocketMapSpec
Types and behavior for datagram socket demultiplexing map.
DatagramSocketSpec
Types and behavior for datagram sockets.
DatagramSpecBoundStateContext
A mirror trait of DatagramBoundStateContext allowing foreign crates to provide blanket impls for it.
DatagramSpecStateContext
A mirror trait of DatagramStateContext allowing foreign crates to provide blanket impls for it.
DatagramStateContext
The core context providing access to datagram socket state.
DualStackConverter
A marker trait for the requirements of DualStackDatagramBoundStateContext::ds_converter.
DualStackDatagramBoundStateContext
Provides access to dual-stack socket state.
DualStackDatagramSpecBoundStateContext
A mirror trait of DualStackDatagramBoundStateContext allowing foreign crates to provide blanket impls for it.
DualStackIpExt
A marker trait for dual-stack socket features.
IpExt
Marker trait for datagram IP extensions.
NonDualStackConverter
A marker trait for the requirements of NonDualStackDatagramBoundStateContext::nds_converter.
NonDualStackDatagramBoundStateContext
Provides access to socket state for a single IP version.
NonDualStackDatagramSpecBoundStateContext
A mirror trait of NonDualStackDatagramBoundStateContext allowing foreign crates to provide blanket impls for it.

Type Aliases§

BoundSockets
Datagram demultiplexing map.
StrongRc
A convenient alias for a strong reference to a datagram socket.
WeakRc
A convenient alias for a weak reference to a datagram socket.