Skip to main content

Crate rift_mesh

Crate rift_mesh 

Source
Expand description

Mesh routing, session handling, and peer management.

This module is the heart of Rift’s P2P system. It:

  • manages UDP sockets (direct + TURN relays)
  • negotiates sessions and capabilities
  • handles routing (direct vs relayed) and ICE-lite candidates
  • performs encryption/decryption and rate limiting
  • emits high-level events to clients

Structs§

GlobalStats
LinkStats
Mesh
High-level mesh controller used by clients.
MeshConfig
MeshHandle
Cloneable handle for sending commands without owning the event stream.
RendezvousConfig
Async rendezvous configuration for Predictive Rendezvous sessions.
RendezvousResult
Result of a successful rendezvous attempt.
SessionConfig
Negotiated session configuration with a peer.

Enums§

MeshEvent
PeerRoute
RendezvousError