ModulesΒ§
- config π
- This module defines the configuration of the copper runtime. The configuration is a directed graph where nodes are tasks and edges are connections between tasks. The configuration is serialized in the RON format. The configuration is used to generate the runtime code at compile time.
StructsΒ§
- Args π
- Arrow
Label π - Back
Edge πPlan - Bezier
Segment π - Cell
Line π - CuCompact
String - CuError
- Common copper Error type.
- CuMsg
Origin - Origin metadata captured when a Copper-aware transport receives a remote message.
- Detour
Label πSlot - Duration
Stats π - Edge
Group πKey - Edge
LogStats π - Edge
Stats πKey - Interconnect
Render π - Legend
Metrics π - LogStats π
- LogStats
Index π - Node
Bounds π - Node
Render π - Null
Backend π - Observed
Writer - A bincode writer wrapper that reports every encoded byte to Copperβs observation counters.
- Perf
Stats π - Placed
Section π - Port
Anchor πCollector - Render
Edge π - Resource
Owner π - Resource
Table π - Section
Layout π - Section
Ref π - Straight
Label πSlot - SvgWriter π
- Table
Cell π - Table
Renderer π - Task
Output Spec - Trait to trace back from the CopperList the origin of each message slot.
EnumsΒ§
- Font
Family π - Render
Input π - Resource
Usage π - Table
Node π - Text
Align π - Unified
LogType - Defines the types of what can be logged in the unified logger.
ConstantsΒ§
- BACKGROUND_
COLOR π - BACK_
EDGE_ πDUP_ SPACING - BACK_
EDGE_ πNODE_ GAP - BACK_
EDGE_ πSPAN_ EPS - BACK_
EDGE_ πSTACK_ SPACING - BORDER_
COLOR π - BOX_
SHAPE_ πPADDING - BRIDGE_
HEADER_ πBG - CELL_
LINE_ πSPACING - CELL_
PADDING π - CLUSTER_
COLOR π - CLUSTER_
MARGIN π - COMPACT_
STRING_ CAPACITY - CONFIG_
FONT_ πSIZE - CONFIG_
WRAP_ πWIDTH - COPPER_
GITHUB_ πURL - COPPER_
LINK_ πCOLOR - COPPER_
LOGO_ πSVG - DETOUR_
LABEL_ πCLEARANCE - DIM_
GRAY π - EDGE_
COLOR_ πORDER - EDGE_
COLOR_ πPALETTE - EDGE_
FONT_ πSIZE - EDGE_
HITBOX_ πOPACITY - EDGE_
HITBOX_ πSTROKE_ WIDTH - EDGE_
HOVER_ πPOINT_ RADIUS - EDGE_
HOVER_ πPOINT_ STROKE_ WIDTH - EDGE_
LABEL_ πFIT_ RATIO - EDGE_
LABEL_ πHALO_ WIDTH - EDGE_
LABEL_ πLIGHTEN - EDGE_
LABEL_ πOFFSET - EDGE_
PORT_ πHANDLE - EDGE_
STUB_ πLEN - EDGE_
STUB_ πMIN - EDGE_
TOOLTIP_ πCSS - FONT_
FAMILY π - FONT_
SIZE π - GRAPH_
MARGIN π - HEADER_
BG π - INTERCONNECT_
EDGE_ πCOLOR - INTERMEDIATE_
X_ πEPS - LAYOUT_
SCALE_ πX - LAYOUT_
SCALE_ πY - LEGEND_
BOTTOM_ πPADDING - LEGEND_
CORNER_ πRADIUS - LEGEND_
FONT_ πSIZE - LEGEND_
ITEMS π - LEGEND_
LINK_ πGAP - LEGEND_
LOGO_ πSIZE - LEGEND_
PADDING π - LEGEND_
ROW_ πGAP - LEGEND_
SECTION_ πGAP - LEGEND_
SWATCH_ πSIZE - LEGEND_
TEXT_ πWIDTH_ FACTOR - LEGEND_
TITLE_ πSIZE - LEGEND_
VERSION_ πGAP - LEGEND_
WITH_ πLOGO_ GAP - LIGHT_
GRAY π - LINUX_
RESOURCE_ πSLOT_ NAMES - LOGSTATS_
SCHEMA_ πVERSION - MODULE_
SEPARATOR π - MODULE_
TRUNC_ πMARKER - MONO_
FONT_ πFAMILY - OUTER_
BORDER_ πWIDTH - PERF_
TITLE_ πBG - PLACEHOLDER_
TEXT π - PORT_
DOT_ πRADIUS - PORT_
HEADER_ πFONT_ SIZE - PORT_
LINE_ πGAP - PORT_
VALUE_ πFONT_ SIZE - RESOURCE_
EXCLUSIVE_ πBG - RESOURCE_
LEGEND_ πITEMS - RESOURCE_
LEGEND_ πTITLE - RESOURCE_
SHARED_ πBG - RESOURCE_
TABLE_ πGAP - RESOURCE_
TABLE_ πMARGIN - RESOURCE_
TITLE_ πBG - RESOURCE_
UNUSED_ πBG - RESOURCE_
UNUSED_ πTEXT - SECTION_
SPACING π - SINK_
HEADER_ πBG - SOURCE_
HEADER_ πBG - TASK_
HEADER_ πBG - TOOLTIP_
BG π - TOOLTIP_
BORDER π - TOOLTIP_
BORDER_ πWIDTH - TOOLTIP_
FONT_ πSIZE - TOOLTIP_
LINE_ πGAP - TOOLTIP_
OFFSET_ πX - TOOLTIP_
OFFSET_ πY - TOOLTIP_
PADDING π - TOOLTIP_
RADIUS π - TOOLTIP_
TEXT π - TYPE_
FONT_ πSIZE - TYPE_
WRAP_ πWIDTH - VALUE_
BORDER_ πWIDTH
TraitsΒ§
- Copper
List Tuple - A CopperListTuple needs to be encodable, decodable and fixed size in memory.
- CuMsg
Metadata Trait - Key metadata piece attached to every message in Copper.
- CuPayload
RawBytes - Provides per-output raw payload sizes aligned with
ErasedCuStampedDataSet::cumsgsorder. - Erased
CuStamped Data - A generic trait to expose the generated CuStampedDataSet from the task graph.
- Erased
CuStamped Data Set - Trait to get a vector of type-erased CuStampedDataSet This is used for generic serialization of the copperlists
- Matching
Tasks - Metadata
- Represent the minimum set of traits to be usable as Metadata in Copper.
- Payload
Schemas - Trait for providing JSON schemas for CopperList payload types.
- Reflect
- A core trait of
bevy_reflect, used for downcasting to concrete types. - Table
Visitor π - Write
Stream - Defines a basic write, append only stream trait to be able to log or send serializable objects.
FunctionsΒ§
- abort_
observed_ encode - Aborts any active observed byte counting session.
- approximate_
path_ πlength - assign_
back_ πedge_ offsets - base64_
encode π - begin_
observed_ encode - Starts observed byte counting for the current encode pass.
- build_
back_ πedge_ path - build_
config_ πrows - Render config entries in a stable order for readability and diffs.
- build_
detour_ πlabel_ slots - build_
edge_ πhover_ overlay - build_
edge_ πpath - build_
edge_ πtooltip_ group - build_
explicit_ πpath_ data - build_
graph_ πsignature - build_
lane_ πpath - build_
loop_ πpath - build_
node_ πtable - Build the record table for a node and capture port ids for routing.
- build_
path_ πdata - build_
perf_ πtable - build_
port_ πcolumn - Keep input/output rows aligned and generate stable port identifiers.
- build_
resource_ πtable - build_
resource_ πtables - build_
section_ πlayout - Convert a config graph into positioned nodes, edges, and port anchors.
- build_
sections π - Normalize mission selection into a list of sections to render.
- build_
straight_ πlabel_ slots - build_
text_ πnode - bundle_
applies π - cell_
text_ πheight - cell_
text_ πsize - clamp_
label_ πposition - collect_
graph_ πresource_ owners - collect_
node_ πbounds - collect_
port_ πanchors - collect_
resource_ πcatalog - colored_
edge_ πstyle - dedup_
owners π - detour_
lane_ πbounds_ from_ points - direction_
unit π - draw_
cluster π - Visually group rendered sections with a labeled bounding box.
- draw_
created_ πwith - draw_
interconnects π - draw_
legend π - Render a legend cartridge for task colors and the copper-rs credit line.
- draw_
node_ πtable - Draw table cells manually since the layout engine only positions shapes.
- draw_
resource_ πtable - edge_
cycle_ πcolor_ index - edge_
port_ πhandle - edge_
stub_ πlen - expand_
bounds π - extend_
max_ πbounds - fallback_
port_ πdirs - find_
horizontal_ πlane_ span - finish_
observed_ encode - Ends observed byte counting and returns the total bytes written.
- fit_
edge_ πlabel - fit_
label_ πto_ width - flavor_
label π - flavor_
rank π - fnv1a64 π
- format_
bytes π - format_
bytes_ πopt - format_
duration_ πns - format_
duration_ πns_ f64 - format_
duration_ πns_ u64 - format_
edge_ πtooltip - format_
endpoint π - format_
mission_ πlist - Keep mission lists stable for consistent error messages.
- format_
none_ πratio - format_
rate_ πbytes_ per_ sec - format_
rate_ πhz - format_
rate_ πunits - format_
resource_ πowners - label_
bbox π - legend_
text_ πwidth - lerp_
point π - lighten_
hex π - load_
logstats π - load_
render_ πinput - main π
- Render the configuration file to an SVG and optionally opens it with inkscape. CLI entrypoint that parses args, renders SVG, and optionally opens it.
- max_
bottom_ πfor_ span - measure_
legend π - min_
top_ πfor_ span - mission_
key π - normalize_
web_ πcolor - observed_
encode_ bytes - Returns the number of bytes written so far in the current observed encode pass.
- open_
svg π - Hide platform-specific open commands behind a single helper.
- parse_
resource_ πpath - path_
label_ πanchor - place_
detour_ πlabel - place_
edge_ πlabel - place_
label_ πwith_ normal - place_
label_ πwith_ offset - place_
self_ πloop_ label - port_
dir π - port_
dir_ πincoming - print_
mission_ πlist - Support a CLI mode that prints mission names and exits.
- provider_
resource_ πslots - record_
observed_ encode_ bytes - Records bytes written by an observed writer.
- record_
size π - Estimate record size before layout so edges and clusters can be sized.
- rects_
overlap π - render_
config_ πsvg - Run the full render pipeline and return SVG bytes for the CLI.
- render_
multi_ πconfig_ svg - render_
sections_ πto_ svg - Render each section and merge them into a single SVG canvas.
- reorder_
auto_ πinput_ rows - reorder_
input_ πrows - resolve_
anchor π - resolve_
interconnect_ πanchor - resource_
usage π - resource_
usage_ πcolor - scale_
layout_ πpositions - segment_
length π - segment_
point π - shorten_
module_ πpath - span_
has_ πintermediate - split_
long_ πtoken - split_
type_ πtokens - straight_
segment π - strip_
type_ πparams - svg_
data_ πuri - table_
to_ πrecord - Adapt our table tree into the layout-rs record format.
- tooltip_
anchor_ πfor_ path - tooltip_
line_ πheight - truncate_
label_ πleft - validate_
mission_ πarg - Fail fast on invalid mission ids and provide a readable list.
- visit_
table π - Walk table cells to compute positions and collect port anchors.
- with_
cause - Creates a CuError with a message and cause in a single call.
- wrap_
text π - wrap_
type_ πlabel
Type AliasesΒ§
Derive MacrosΒ§
- Reflect
- The main derive macro used by
bevy_reflectfor deriving itsReflecttrait.