Skip to main content

Crate usbc_cable_caps

Crate usbc_cable_caps 

Source
Expand description

What a USB-C cable can carry, derived from its class rather than its packaging.

Every USB-C plug is the same shape, and almost nothing else about USB-C cables is the same. A cable may carry 240 W and 480 Mbps, or 60 W and 40 Gbps, or any other combination — the connector tells you nothing, and the printed marketing is frequently wrong or silent.

The two facts that actually decide capability:

  1. Current above 3 A requires an e-marker chip in the plug that declares the rating. No chip means the source is obliged to stay at 3 A regardless of what either end could do.
  2. Data rate and power are independent. The cheapest charging cable and a Thunderbolt cable both charge a laptop; only one carries a display.

Structs§

Cable
A cable as it physically exists, not as it is marketed.

Enums§

DataClass
Data capability of a cable, in the order the standards actually arrived.

Functions§

typical_bundled
The cable most people already own: bundled, unmarked, USB 2.0, no e-marker.