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 whenDatapath
is dropped. So, their lifetime is'dp
from the&'dp Datapath
. - Datapath
- Represents datapath functionality. libccp state is freed when this is dropped.
- Datapath
Builder - Construct a datapath object.
- Flow
Info - Primitives
Enums§
Traits§
- Congestion
Ops - Implement this trait on the type that holds per-connection state.
- Datapath
Ops - Datapath-wide functionality.