Skip to main content

Module bearer

Module bearer 

Source
Expand description

Bearer adapters. Each backend is a focused file.

Re-exports§

pub use contract::Bearer;
pub use contract::BearerCapabilities;
pub use contract::RecvMeta;
pub use fragment::admit_and_buffer;
pub use fragment::decode_fragment;
pub use fragment::encode_fragment;
pub use fragment::fragment_payload_mtu;
pub use fragment::split_handshake;
pub use fragment::AdmitTicket;
pub use fragment::FragmentHeader;
pub use fragment::HandshakeReassembler;
pub use fragment::FRAG_HDR_LEN;
pub use fragment::MAX_HANDSHAKE_BYTES;
pub use ipc::ipc_pair;
pub use ipc::IpcEndpoint;
pub use leased_ipc::leased_ipc_pair;
pub use leased_ipc::LeasedIpc;
pub use lifecycle::BearerLifecycle;
pub use lifecycle::BearerPhase;
pub use mtu::interface_loss_error;
pub use mtu::negotiate_mtu;
pub use mtu::reconnect_requires_new_admission;
pub use mtu::unfragmented_fit;
pub use mtu::DEFAULT_QDNF_MTU;
pub use mtu::MAX_QDNF_MTU;
pub use mtu::MIN_QDNF_MTU;
pub use nym::decapsulate_nym;
pub use nym::encapsulate_nym;
pub use nym::NymSimulatedBearer;
pub use nym::NYM_ENVELOPE_VERSION;
pub use nym::NYM_HEADER_LEN;
pub use nym::NYM_MAGIC;
pub use nym::NYM_SPHINX_MTU;
pub use raw_ethernet::decapsulate_ethernet;
pub use raw_ethernet::encapsulate_ethernet;
pub use raw_ethernet::ethernet_loop_pair;
pub use raw_ethernet::physical_two_host_qualified;
pub use raw_ethernet::probe_two_host;
pub use raw_ethernet::probe_veth_namespace;
pub use raw_ethernet::silent_ip_fallback;
pub use raw_ethernet::veth_namespace_qualified;
pub use raw_ethernet::EthernetEvidence;
pub use raw_ethernet::EthernetLoop;
pub use raw_ethernet::RawEthernet;
pub use raw_ethernet::TwoHostProbe;
pub use raw_ethernet::TwoHostProbeReason;
pub use raw_ethernet::DEV_ETHERTYPE;

Modules§

contract
Bearer contracts. Observed locators come from the adapter, never the payload.
fragment
PQ handshake fragmentation with admission before buffering.
ipc
In-process local-ipc-v1 bearer. No IP, DNS, or libp2p.
leased_ipc
Lease-gated wrapper around IpcEndpoint.
lifecycle
Bearer phase machine: init, MTU, drain, shutdown.
local_stream
Length-prefixed local-stream framing for later named-pipe / UDS backends.
metadata
Recv metadata helpers. Payload claims never replace observed source.
mtu
Bounded MTU negotiation for QDNF bearers.
nym
Nym mixnet transition bearer framing and deterministic loopback carrier.
raw_ethernet
Raw Ethernet backend. Linux AF_PACKET is privilege-gated; others fail closed.