Skip to main content

Crate cu29_rendercfg

Crate cu29_rendercfg 

Source

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 ๐Ÿ”’
ArrowLabel ๐Ÿ”’
BackEdgePlan ๐Ÿ”’
BezierSegment ๐Ÿ”’
CellLine ๐Ÿ”’
CuCompactString
CuError
Common copper Error type.
DetourLabelSlot ๐Ÿ”’
DurationStats ๐Ÿ”’
EdgeGroupKey ๐Ÿ”’
EdgeLogStats ๐Ÿ”’
EdgeStatsKey ๐Ÿ”’
LegendMetrics ๐Ÿ”’
LogStats ๐Ÿ”’
LogStatsIndex ๐Ÿ”’
NodeBounds ๐Ÿ”’
NodeRender ๐Ÿ”’
NullBackend ๐Ÿ”’
PerfStats ๐Ÿ”’
PortAnchorCollector ๐Ÿ”’
RenderEdge ๐Ÿ”’
ResourceOwner ๐Ÿ”’
ResourceTable ๐Ÿ”’
SectionLayout ๐Ÿ”’
SectionRef ๐Ÿ”’
StraightLabelSlot ๐Ÿ”’
SvgWriter ๐Ÿ”’
TableCell ๐Ÿ”’
TableRenderer ๐Ÿ”’

Enumsยง

FontFamily ๐Ÿ”’
ResourceUsage ๐Ÿ”’
TableNode ๐Ÿ”’
TextAlign ๐Ÿ”’
UnifiedLogType
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 ๐Ÿ”’
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ยง

CopperListTuple
A CopperListTuple needs to be encodable, decodable and fixed size in memory.
CuMsgMetadataTrait
Key metadata piece attached to every message in Copper.
CuPayloadRawBytes
Provides per-output raw payload sizes aligned with ErasedCuStampedDataSet::cumsgs order.
ErasedCuStampedData
A generic trait to expose the generated CuStampedDataSet from the task graph.
ErasedCuStampedDataSet
Trait to get a vector of type-erased CuStampedDataSet This is used for generic serialization of the copperlists
MatchingTasks
Trait to trace back from the CopperList the origin of the messages
Metadata
Represent the minimum set of traits to be usable as Metadata in Copper.
PayloadSchemas
Trait for providing JSON schemas for CopperList payload types.
TableVisitor ๐Ÿ”’
WriteStream
Defines a basic write, append only stream trait to be able to log or send serializable objects.

Functionsยง

approximate_path_length ๐Ÿ”’
assign_back_edge_offsets ๐Ÿ”’
base64_encode ๐Ÿ”’
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 mission sections with a labeled bounding box.
draw_created_with ๐Ÿ”’
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 ๐Ÿ”’
fallback_port_dirs ๐Ÿ”’
find_horizontal_lane_span ๐Ÿ”’
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 ๐Ÿ”’
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 ๐Ÿ”’
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_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_sections_to_svg ๐Ÿ”’
Render each section and merge them into a single SVG canvas.
reorder_auto_input_rows ๐Ÿ”’
reorder_input_rows ๐Ÿ”’
resolve_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ยง

CuResult