Skip to main content

Crate sectorsync_transport

Crate sectorsync_transport 

Source
Expand description

Transport traits and fake transport support for SectorSync.

Structs§

BudgetedTransport
Byte-budget guard for any transport sink.
ClientTransportLimits
Bounded in-memory client transport limits.
FakeTransport
Fake transport for benchmarks and tests.
InMemoryClientUnregister
Resources released when an in-memory client endpoint is unregistered.
InMemoryStationTransport
Bounded in-memory station-to-station packet transport.
InMemoryStationTransportStats
Statistics for the bounded in-memory station transport.
InMemoryTransportEndpoint
Local endpoint handle for a bounded in-memory client packet hub.
InMemoryTransportHub
Shared bounded in-memory client packet hub.
InMemoryTransportStats
Statistics for the bounded in-memory client transport.
InboundPacket
Inbound packet before wire decoding.
InboundPacketRef
Borrowed inbound packet backed by a transport-owned receive buffer.
OutboundPacket
Outbound packet after wire encoding.
PacketBatch
Batch of outbound packets.
PacketKeyDescriptor
Metadata for one externally managed packet security key.
PacketKeyRing
Bounded packet key lifecycle metadata.
PacketKeyRingConfig
Packet key ring configuration.
PacketKeyRingStats
Packet key ring maintenance statistics.
PacketReplayWindow
Bounded replay window for security envelopes.
PacketSecurityBox
Bounded packet security helper combining nonce allocation, authentication, optional encryption, and replay checks.
PacketSecurityConfig
Packet security framing configuration.
PacketSecurityEnvelope
Owned packet security envelope.
PacketSecurityEnvelopeRef
Borrowed packet security envelope decoded directly from wire bytes.
PacketSecurityOpenScratch
Caller-owned reusable payload storage for packet opening.
PacketSecurityOpenView
Borrowed result of opening one packet into caller-owned scratch.
PacketSecurityScratch
Caller-owned reusable payload and tag storage for packet sealing.
PacketSecurityStats
Packet security box statistics.
PlaintextPacketCipher
Explicit plaintext cipher for tests and integrations that only need authentication framing.
ReliableClientConfig
Bounded reliable client link configuration.
ReliableClientEndpoint
Reliable client endpoint combining sender and receiver state.
ReliableClientReceiver
Bounded reliable client receiver state.
ReliableClientRetryScratch
Caller-owned reusable storage for reliable client retry scans.
ReliableClientSender
Bounded reliable client sender state.
ReliableClientStats
Reliable client endpoint statistics.
ReliableRetryReport
Retry pass report.
ReliableStationConfig
Bounded reliable station link configuration.
ReliableStationEndpoint
Reliable station endpoint combining sender and receiver state.
ReliableStationReceiver
Bounded reliable station receiver state.
ReliableStationRetryScratch
Caller-owned reusable storage for reliable station retry scans.
ReliableStationSender
Bounded reliable station sender state.
ReliableStationStats
Reliable station endpoint statistics.
StationInboundPacket
Inbound station-to-station packet before wire decoding.
StationInboundPacketRef
Borrowed station packet backed by a transport-owned receive buffer.
StationOutboundPacket
Outbound station-to-station packet after wire encoding.
StationPacketBatch
Batch of outbound station-to-station packets.
StationTransportLimits
Bounded in-memory station transport limits.
UdpStationTransport
Lightweight UDP station-to-station packet adapter.
UdpStationTransportStats
Statistics for the UDP station transport adapter.
UdpTransport
Lightweight std::net::UdpSocket transport adapter.

Enums§

InMemoryTransportError
Error produced by bounded in-memory client transport.
PacketKeyRingError
Packet key ring policy error.
PacketKeyState
Packet key lifecycle state tracked by SectorSync metadata.
PacketSecurityDecodeError
Packet security decode error.
PacketSecurityEncodeError
Packet security encode error.
PacketSecurityError
Error produced by packet security helpers.
ReliableClientDecodeError
Reliable client frame decode error.
ReliableClientEncodeError
Reliable client frame encode error.
ReliableClientError
Error produced by reliable client endpoints.
ReliableClientFrame
Encoded reliable client frame.
ReliableClientFrameRef
Borrowed reliable client frame decoded from caller-owned bytes.
ReliableStationDecodeError
Reliable station frame decode error.
ReliableStationEncodeError
Reliable station frame encode error.
ReliableStationError
Error produced by reliable station endpoints.
ReliableStationFrame
Encoded reliable station frame.
ReliableStationFrameRef
Borrowed reliable Station frame decoded from caller-owned bytes.
StationTransportError
Error produced by bounded in-memory station transport.
TransportError
Transport sink error produced by wrappers.
UdpStationTransportError
Error produced by the UDP station transport adapter.
UdpTransportError
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§

PacketAuthenticator
Packet authenticator hook. Embedders should provide a real MAC/signature implementation and key management outside SectorSync.
PacketCipher
Packet cipher hook. Embedders should provide real encryption outside SectorSync when confidentiality is needed.
StationTransportReceiver
Non-blocking station-to-station receive abstraction.
StationTransportSink
Station-to-station packet sink abstraction.
TransportReceiver
Non-blocking packet receive abstraction.
TransportSink
Packet sink abstraction. Real network transports should implement this at batch boundaries rather than per-entity boundaries.