Skip to main content

Crate net_wire

Crate net_wire 

Source
Expand description

Borrowed, allocation-free views of network wire layouts.

This crate performs no I/O or allocation. The default feature set is empty. Protocols are selected explicitly; intrinsic lower-protocol requirements are enabled transitively, while optional adapters remain orthogonal.

Modules§

arp
ARP packet views, semantic fields, and caller-buffer construction. Address Resolution Protocol packet views and construction (RFC 826).
ethernet
Ethernet II frame views, semantic fields, and caller-buffer construction. Ethernet II semantic fields and borrowed frame views.
http1
Standalone HTTP/1 head and chunked-body views and caller-buffer construction. Standalone allocation-free HTTP/1.0 and HTTP/1.1 wire views.
http2
Standalone raw HTTP/2 preface and frame views and caller-buffer construction. Raw, allocation-free HTTP/2 wire views and caller-buffer construction.
http3
Standalone raw HTTP/3 frame views and caller-buffer construction. Raw, allocation-free HTTP/3 wire views and caller-buffer construction.
icmpv4
ICMPv4 message views and caller-buffer construction. ICMPv4 wire messages (RFC 792).
icmpv6
ICMPv6 message views and caller-buffer construction. ICMPv6 wire messages (RFC 4443).
ipv4
IPv4 packet views, semantic fields, and caller-buffer construction. IPv4 protocol values, packet views, and construction (RFC 791).
ipv6
IPv6 packet views, semantic fields, and caller-buffer construction. IPv6 base-header views and construction (RFC 8200).
kcp
KCP wire segment views and stateless scalar helpers. Allocation-free KCP wire segment views and stateless scalar helpers.
qpack
Standalone QPACK prefixed integers, Huffman payloads, and string-literal views. RFC 9204 QPACK primitives.
quic
Standalone QUIC wire primitives and borrowed packet-header views. Standalone QUIC primitive values and borrowed packet-header views.
tcp
TCP segment views and caller-buffer construction. Transmission Control Protocol views and caller-buffer construction (RFC 9293).
tls
TLS record and handshake views and caller-buffer construction. Standalone allocation-free TLS record and handshake wire views.
udp
UDP datagram views and caller-buffer construction. User Datagram Protocol views and caller-buffer construction (RFC 768).

Enums§

ParseError
Failure to validate bytes required by a wire-format view.