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.
CuMsgOrigin
Origin metadata captured when a Copper-aware transport receives a remote message.
DetourLabelSlot πŸ”’
DurationStats πŸ”’
EdgeGroupKey πŸ”’
EdgeLogStats πŸ”’
EdgeStatsKey πŸ”’
InterconnectRender πŸ”’
LegendMetrics πŸ”’
LogStats πŸ”’
LogStatsIndex πŸ”’
NodeBounds πŸ”’
NodeRender πŸ”’
NullBackend πŸ”’
ObservedWriter
A bincode writer wrapper that reports every encoded byte to Copper’s observation counters.
PerfStats πŸ”’
PlacedSection πŸ”’
PortAnchorCollector πŸ”’
RenderEdge πŸ”’
ResourceOwner πŸ”’
ResourceTable πŸ”’
SectionLayout πŸ”’
SectionRef πŸ”’
StraightLabelSlot πŸ”’
SvgWriter πŸ”’
TableCell πŸ”’
TableRenderer πŸ”’
TaskOutputSpec
Trait to trace back from the CopperList the origin of each message slot.

EnumsΒ§

FontFamily πŸ”’
RenderInput πŸ”’
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 πŸ”’
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Β§

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
Metadata
Represent the minimum set of traits to be usable as Metadata in Copper.
PayloadSchemas
Trait for providing JSON schemas for CopperList payload types.
Reflect
A core trait of bevy_reflect, used for downcasting to concrete types.
TableVisitor πŸ”’
WriteStream
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Β§

CuResult

Derive MacrosΒ§

Reflect
The main derive macro used by bevy_reflect for deriving its Reflect trait.