Thanks to visit codestin.com
Credit goes to docs.rs

Crate libccp

Crate libccp 

Source
Expand description

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.
DatapathBuilder
Construct a datapath object.
FlowInfo
Primitives

Enums§

LibccpError

Traits§

CongestionOps
Implement this trait on the type that holds per-connection state.
DatapathOps
Datapath-wide functionality.