Expand description
Transport traits and fake transport support for SectorSync.
Structs§
- Budgeted
Transport - Byte-budget guard for any transport sink.
- Client
Transport Limits - Bounded in-memory client transport limits.
- Fake
Transport - Fake transport for benchmarks and tests.
- InMemory
Client Unregister - Resources released when an in-memory client endpoint is unregistered.
- InMemory
Station Transport - Bounded in-memory station-to-station packet transport.
- InMemory
Station Transport Stats - Statistics for the bounded in-memory station transport.
- InMemory
Transport Endpoint - Local endpoint handle for a bounded in-memory client packet hub.
- InMemory
Transport Hub - Shared bounded in-memory client packet hub.
- InMemory
Transport Stats - Statistics for the bounded in-memory client transport.
- Inbound
Packet - Inbound packet before wire decoding.
- Inbound
Packet Ref - Borrowed inbound packet backed by a transport-owned receive buffer.
- Outbound
Packet - Outbound packet after wire encoding.
- Packet
Batch - Batch of outbound packets.
- Packet
KeyDescriptor - Metadata for one externally managed packet security key.
- Packet
KeyRing - Bounded packet key lifecycle metadata.
- Packet
KeyRing Config - Packet key ring configuration.
- Packet
KeyRing Stats - Packet key ring maintenance statistics.
- Packet
Replay Window - Bounded replay window for security envelopes.
- Packet
Security Box - Bounded packet security helper combining nonce allocation, authentication, optional encryption, and replay checks.
- Packet
Security Config - Packet security framing configuration.
- Packet
Security Envelope - Owned packet security envelope.
- Packet
Security Envelope Ref - Borrowed packet security envelope decoded directly from wire bytes.
- Packet
Security Open Scratch - Caller-owned reusable payload storage for packet opening.
- Packet
Security Open View - Borrowed result of opening one packet into caller-owned scratch.
- Packet
Security Scratch - Caller-owned reusable payload and tag storage for packet sealing.
- Packet
Security Stats - Packet security box statistics.
- Plaintext
Packet Cipher - Explicit plaintext cipher for tests and integrations that only need authentication framing.
- Reliable
Client Config - Bounded reliable client link configuration.
- Reliable
Client Endpoint - Reliable client endpoint combining sender and receiver state.
- Reliable
Client Receiver - Bounded reliable client receiver state.
- Reliable
Client Retry Scratch - Caller-owned reusable storage for reliable client retry scans.
- Reliable
Client Sender - Bounded reliable client sender state.
- Reliable
Client Stats - Reliable client endpoint statistics.
- Reliable
Retry Report - Retry pass report.
- Reliable
Station Config - Bounded reliable station link configuration.
- Reliable
Station Endpoint - Reliable station endpoint combining sender and receiver state.
- Reliable
Station Receiver - Bounded reliable station receiver state.
- Reliable
Station Retry Scratch - Caller-owned reusable storage for reliable station retry scans.
- Reliable
Station Sender - Bounded reliable station sender state.
- Reliable
Station Stats - Reliable station endpoint statistics.
- Station
Inbound Packet - Inbound station-to-station packet before wire decoding.
- Station
Inbound Packet Ref - Borrowed station packet backed by a transport-owned receive buffer.
- Station
Outbound Packet - Outbound station-to-station packet after wire encoding.
- Station
Packet Batch - Batch of outbound station-to-station packets.
- Station
Transport Limits - Bounded in-memory station transport limits.
- UdpStation
Transport - Lightweight UDP station-to-station packet adapter.
- UdpStation
Transport Stats - Statistics for the UDP station transport adapter.
- UdpTransport
- Lightweight
std::net::UdpSockettransport adapter.
Enums§
- InMemory
Transport Error - Error produced by bounded in-memory client transport.
- Packet
KeyRing Error - Packet key ring policy error.
- Packet
KeyState - Packet key lifecycle state tracked by
SectorSyncmetadata. - Packet
Security Decode Error - Packet security decode error.
- Packet
Security Encode Error - Packet security encode error.
- Packet
Security Error - Error produced by packet security helpers.
- Reliable
Client Decode Error - Reliable client frame decode error.
- Reliable
Client Encode Error - Reliable client frame encode error.
- Reliable
Client Error - Error produced by reliable client endpoints.
- Reliable
Client Frame - Encoded reliable client frame.
- Reliable
Client Frame Ref - Borrowed reliable client frame decoded from caller-owned bytes.
- Reliable
Station Decode Error - Reliable station frame decode error.
- Reliable
Station Encode Error - Reliable station frame encode error.
- Reliable
Station Error - Error produced by reliable station endpoints.
- Reliable
Station Frame - Encoded reliable station frame.
- Reliable
Station Frame Ref - Borrowed reliable Station frame decoded from caller-owned bytes.
- Station
Transport Error - Error produced by bounded in-memory station transport.
- Transport
Error - Transport sink error produced by wrappers.
- UdpStation
Transport Error - Error produced by the UDP station transport adapter.
- UdpTransport
Error - Error produced by the standard UDP transport adapter.
Constants§
- DEFAULT_
PACKET_ KEY_ RING_ MAX_ KEYS - Default maximum packet keys tracked by one key ring.
- DEFAULT_
PACKET_ SECURITY_ MAX_ PAYLOAD_ BYTES - Default packet security payload budget aligned to the default packet budget after envelope overhead.
- DEFAULT_
PACKET_ SECURITY_ MAX_ TAG_ BYTES - Default maximum authentication tag bytes.
- DEFAULT_
PACKET_ SECURITY_ REPLAY_ HISTORY - Default replay history retained per security box.
- DEFAULT_
RELIABLE_ CLIENT_ DELIVERED_ HISTORY - Default duplicate-suppression history retained per reliable client endpoint.
- DEFAULT_
RELIABLE_ CLIENT_ MAX_ PAYLOAD_ BYTES - Default reliable client payload budget aligned to the default packet budget after reliable header overhead.
- DEFAULT_
RELIABLE_ STATION_ DELIVERED_ HISTORY - Default duplicate-suppression history retained per reliable endpoint.
- DEFAULT_
RELIABLE_ STATION_ MAX_ PAYLOAD_ BYTES - Default reliable station payload budget aligned to the default station packet budget after reliable header overhead.
- DEFAULT_
UDP_ RECV_ BUFFER_ SIZE - Default maximum UDP datagram bytes read by
UdpTransport. - PACKET_
SECURITY_ HEADER_ BYTES - Packet security envelope header bytes before payload and tag.
- RELIABLE_
CLIENT_ ACK_ BYTES - Reliable client ACK frame bytes.
- RELIABLE_
CLIENT_ DATA_ HEADER_ BYTES - Reliable client data frame header bytes before payload.
- RELIABLE_
STATION_ ACK_ BYTES - Reliable ACK frame bytes.
- RELIABLE_
STATION_ DATA_ HEADER_ BYTES - Reliable data frame header bytes before payload.
Traits§
- Packet
Authenticator - Packet authenticator hook. Embedders should provide a real MAC/signature
implementation and key management outside
SectorSync. - Packet
Cipher - Packet cipher hook. Embedders should provide real encryption outside
SectorSyncwhen confidentiality is needed. - Station
Transport Receiver - Non-blocking station-to-station receive abstraction.
- Station
Transport Sink - Station-to-station packet sink abstraction.
- Transport
Receiver - Non-blocking packet receive abstraction.
- Transport
Sink - Packet sink abstraction. Real network transports should implement this at batch boundaries rather than per-entity boundaries.