Skip to main content

Crate pim_protocol

Crate pim_protocol 

Source
Expand description

Wire-format frames exchanged across the mesh transport and control planes.

These types define the canonical binary layout shared by peers for transport, routing, discovery-related control messages, and packet fragmentation.

Re-exports§

pub use control_frame::ControlFrame;
pub use control_frame::ControlType;
pub use data_frame::DataFlags;
pub use data_frame::MeshDataFrame;
pub use fragment_frame::fragment_packet;
pub use fragment_frame::FragmentFrame;
pub use fragment_frame::MAX_FRAGMENT_PAYLOAD;
pub use frame_type::FrameType;
pub use handshake_frame::HandshakeFrameType;
pub use handshake_frame::HandshakeWireFrame;
pub use heartbeat_frame::HeartbeatFrame;
pub use length_delimited::LengthDelimitedCodec;
pub use reassembler::Reassembler;
pub use route_frame::RouteEntry;
pub use route_frame::RouteUpdateFrame;
pub use transport_frame::TransportFrame;

Modules§

control_frame
Control-plane frames such as IP assignment and keepalive requests. Control-plane messages carried inside transport frames.
data_frame
Encapsulation for mesh-routed IP payloads. Data-plane frame that carries mesh-routed IP payloads.
fragment_frame
Fragment headers used when a packet exceeds the mesh MTU. Fragmentation of large mesh data payloads.
frame_type
Shared discriminator for the outer transport envelope. Shared discriminator for the outer transport envelope.
handshake_frame
Wire representation of the peer handshake messages. Wire-level representation of the authenticated peer handshake.
heartbeat_frame
Periodic liveness and gateway-metric frames. Periodic direct-peer heartbeat frame.
length_delimited
Stream framing used by byte-stream transports such as TCP.
reassembler
Reassembly of fragmented mesh data payloads.
route_frame
Route advertisement frames exchanged between peers. Route advertisement frame definitions.
transport_frame
Authenticated outer transport envelope exchanged on direct links. Outer authenticated transport envelope exchanged on direct peer links.