Expand description
Netstack3 core Datagram sockets.
This crate contains the shared base implementation between UDP and ICMP Echo sockets.
Structs§
- Bound
Socket State - State associated with a Bound Socket.
- Conn
Info - Information associated with a datagram connection.
- Conn
State - State associated with a connected socket.
- Datagram
Api - The shared datagram socket API.
- Datagram
Flow Id - Identifies a flow for a datagram socket.
- Datagram
IpSpecific Socket Options - A datagram socket’s options.
- Datagram
Socket Set - A set containing all datagram sockets for a given implementation.
- Expected
Conn Error - A connected socket was expected.
- Expected
Unbound Error - An unbound socket was expected.
- InUse
Error - The error returned when an identifier (i.e.) port is already in use.
- IpOptions
- A datagram socket’s IP options.
- Listener
Info - Information associated with a datagram listener.
- Reference
State - Top-level struct kept in datagram socket references.
- TxMetadata
- The tx metadata associated with a datagram socket.
- Wrap
Other Stack IpOptions - A wrapper to make [
DualStackIpExt::OtherStackIpOptions
]GenericOverIp
. - Wrap
Other Stack IpOptions Mut - A wrapper to make [
DualStackIpExt::OtherStackIpOptions
]GenericOverIp
.
Enums§
- Bound
Socket State Type - State for the sub-types of bound socket (e.g. Listener or Connected).
- Connect
Error - An error when attempting to create a datagram socket.
- Dual
Stack Conn State - Connection state belong to either this-stack or the other-stack.
- Either
IpSocket - An IP Socket ID that is either
Ipv4
orIpv6
. - Multicast
Interface Selector - Selector for the device to affect when changing multicast settings.
- Multicast
Membership Interface Selector - Selector for the device to use when changing multicast membership settings.
- Send
Error - Error encountered when sending a datagram on a socket.
- Send
ToError - An error encountered while sending a datagram packet to an alternate address.
- SetMulticast
Membership Error - Error resulting from attempting to change multicast membership settings for a socket.
- Socket
Info - Information about the addresses for a socket.
- Socket
State - A datagram socket’s state.
Traits§
- Datagram
Bindings Context - Blanket trait for bindings context requirements for datagram sockets.
- Datagram
Bindings Types - A marker trait for bindings types traits used by datagram.
- Datagram
Bound State Context - The core context providing access to bound datagram sockets.
- Datagram
Socket MapSpec - Types and behavior for datagram socket demultiplexing map.
- Datagram
Socket Spec - Types and behavior for datagram sockets.
- Datagram
Spec Bound State Context - A mirror trait of
DatagramBoundStateContext
allowing foreign crates to provide blanket impls for it. - Datagram
Spec State Context - A mirror trait of
DatagramStateContext
allowing foreign crates to provide blanket impls for it. - Datagram
State Context - The core context providing access to datagram socket state.
- Dual
Stack Converter - A marker trait for the requirements of
DualStackDatagramBoundStateContext::ds_converter
. - Dual
Stack Datagram Bound State Context - Provides access to dual-stack socket state.
- Dual
Stack Datagram Spec Bound State Context - A mirror trait of
DualStackDatagramBoundStateContext
allowing foreign crates to provide blanket impls for it. - Dual
Stack IpExt - A marker trait for dual-stack socket features.
- IpExt
- Marker trait for datagram IP extensions.
- NonDual
Stack Converter - A marker trait for the requirements of
NonDualStackDatagramBoundStateContext::nds_converter
. - NonDual
Stack Datagram Bound State Context - Provides access to socket state for a single IP version.
- NonDual
Stack Datagram Spec Bound State Context - A mirror trait of
NonDualStackDatagramBoundStateContext
allowing foreign crates to provide blanket impls for it.
Type Aliases§
- Bound
Sockets - Datagram demultiplexing map.
- Strong
Rc - A convenient alias for a strong reference to a datagram socket.
- WeakRc
- A convenient alias for a weak reference to a datagram socket.