[][src]Crate libccp

Rust bindings for libccp. This crate is useful for writing CCP datapaths in Rust.

Users need to implement two traits: Datapath and CongestionOps. Datapath implements not specific to a single connection. CongestionOps implements connection-level events.

Structs

Connection

An individual Connection. Connections cannot outlive the Datapath they belong to, since they contain a pointer to memory that is freed when Datapath is dropped. So, their lifetime is 'dp from the &'dp Datapath.

Datapath

Represents datapath functionality. libccp state is freed when this is dropped.

FlowInfo
Primitives

Traits

CongestionOps

Implement this trait on the type that holds per-connection state.

DatapathOps

Datapath-wide functionality.