Module test_utils
Available on crate feature
std and crate feature udp and (crate features test-utils) only.Expand description
Utilities for testing datagram protocols without operating-system sockets.
Structs§
- Memory
Datagram Sender - Send handle for a
MemoryDatagramSocket. - Memory
Datagram Socket - One endpoint of an in-memory datagram pair used by protocol tests.
Functions§
- message_
too_ large_ error - The native “message too large” send error, as the socket layer reports it after
EMSGSIZE, for injecting oversized-send failures into tests.