rust 1,854,395 · typescript 233,161 · javascript 131,995 · python 19,227 · 6,379 files · digest 17dcda71e44b · built in 1.5 s · crystals off
crates/cre8-app-device/src/gcode_stream.rs
Items
const MAX_GCODE_BYTES const MAX_ACTIVE_STREAMS const MAX_RETAINED_STREAMS const SERIAL_READ_TIMEOUT_MS const DEFAULT_ACK_TIMEOUT_MS const DEFAULT_FAKE_ACK_MS const MAX_BANNER_LINES const DEFAULT_SIM_TELEMETRY_EVERY const MAX_LOG_PAGE const DEFAULT_GRBL_STATUS_POLL_MS const MIN_STATUS_POLL_MS const MAX_STATUS_POLL_MS const DEFAULT_SIM_MOTION_SCALE enum GcodeDialect enum AckClass impl GcodeDialect struct OperatorPause impl OperatorPause struct AlarmRecord impl AlarmRecord struct MachineErrorRecord impl MachineErrorRecord struct CheckErrorRecord struct CheckPassRecord impl CheckPassRecord struct StopRecord impl StopRecord struct ControlLogEntry impl ControlLogEntry struct GcodeStreamSnapshot struct SnapshotSeed impl GcodeStreamSnapshot enum ControlAction impl ControlAction struct ControlRequest struct StreamShared impl StreamShared static REGISTRY static SEQ struct MarlinOptions enum Exchange enum ReportOutcome struct MarlinLink impl MarlinLink const PRINT
Functions
By call-graph weight (PageRank; 1.0 is the average function). 74 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| registrysrc/gcode_stream.rs:672 | fn | 4 | 1 | 9 | 0 | 5.2 | |
| start_streamsrc/gcode_stream.rs:836 | fn | 11 | 1 | 14 | 1 | 4.4 | |
| start_stream_nativesrc/gcode_stream.rs:849 | fn | 112 | 11 | 1 | 24 | 4.2 | |
| str_fieldsrc/gcode_stream.rs:694 | fn | 3 | 1 | 7 | 0 | 2.7 | |
| drain_complete_linessrc/gcode_stream.rs:1352 | fn | 11 | 3 | 3 | 0 | 2 | |
| u64_fieldsrc/gcode_stream.rs:698 | fn | 8 | 1 | 4 | 0 | 1.9 | |
| endpoint_keysrc/gcode_stream.rs:684 | fn | 3 | 1 | 4 | 0 | 1.7 | |
| control_streamsrc/gcode_stream.rs:1040 | fn | 43 | 6 | 3 | 6 | 1.7 | |
| stream_statussrc/gcode_stream.rs:966 | fn | 27 | 6 | 7 | 5 | 1.6 | |
| GcodeDialect::classifysrc/gcode_stream.rs:189 | method | 35 | 13 | 3 | 0 | 1.5 | |
| GcodeDialect::parsesrc/gcode_stream.rs:150 | method | 7 | 4 | 3 | 1 | 1.5 | |
| wait_terminalsrc/gcode_stream.rs:1368 | fn | 11 | 2 | 9 | 1 | 1.5 | |
| started_stream_idsrc/gcode_stream.rs:1380 | fn | 4 | 1 | 9 | 0 | 1.5 | |
| strip_gcode_commentssrc/gcode_stream.rs:229 | fn | 14 | 9 | 5 | 0 | 1.3 | |
| cancel_streamsrc/gcode_stream.rs:994 | fn | 14 | 1 | 5 | 2 | 1.3 | |
| f64_fieldsrc/gcode_stream.rs:708 | fn | 4 | 1 | 2 | 0 | 1.2 | |
| GcodeStreamSnapshot::is_terminalsrc/gcode_stream.rs:545 | method | 3 | 1 | 1 | 0 | 1.2 | |
| request_is_simulatedsrc/gcode_stream.rs:1024 | fn | 8 | 2 | 3 | 3 | 1.1 | |
| status_poll_inputsrc/gcode_stream.rs:725 | fn | 9 | 3 | 2 | 1 | 1.1 | |
| pause_on_inputsrc/gcode_stream.rs:739 | fn | 44 | 11 | 2 | 2 | 1.1 | |
| simulator_endpoint_requestedsrc/gcode_stream.rs:688 | fn | 3 | 2 | 3 | 0 | 1 | |
| list_streamssrc/gcode_stream.rs:1009 | fn | 9 | 1 | 2 | 1 | 1 | |
| StreamShared::take_controlssrc/gcode_stream.rs:650 | method | 3 | 1 | 2 | 0 | 0.9 | |
| jogsrc/gcode_stream.rs:1085 | fn | 4 | 1 | 1 | 0 | 0.9 | |
| set_zerosrc/gcode_stream.rs:1091 | fn | 4 | 1 | 1 | 0 | 0.9 | |
| machine_statussrc/gcode_stream.rs:1097 | fn | 4 | 1 | 1 | 0 | 0.9 | |
| GcodeStreamSnapshot::seededsrc/gcode_stream.rs:460 | method | 39 | 1 | 2 | 0 | 0.9 | |
| StreamShared::push_controlsrc/gcode_stream.rs:646 | method | 3 | 1 | 2 | 0 | 0.9 | |
| StreamShared::observe_positionsrc/gcode_stream.rs:656 | method | 10 | 3 | 1 | 0 | 0.8 | |
| StreamShared::updatesrc/gcode_stream.rs:640 | method | 5 | 1 | 1 | 1 | 0.8 | |
| StreamShared::record_commandsrc/gcode_stream.rs:609 | method | 12 | 1 | 3 | 2 | 0.8 | |
| StreamShared::log_pagesrc/gcode_stream.rs:623 | method | 12 | 1 | 1 | 0 | 0.8 | |
| StreamShared::trace_jsonsrc/gcode_stream.rs:667 | method | 3 | 1 | 1 | 0 | 0.8 | |
| GcodeDialect::default_baudsrc/gcode_stream.rs:165 | method | 5 | 1 | 2 | 0 | 0.7 | |
| endpoint_inputsrc/gcode_stream.rs:713 | fn | 9 | 1 | 2 | 1 | 0.7 | |
| sim_motion_scale_inputsrc/gcode_stream.rs:784 | fn | 5 | 2 | 2 | 1 | 0.7 | |
| ControlAction::parse_verbsrc/gcode_stream.rs:562 | method | 9 | 5 | 1 | 0 | 0.7 | |
| ControlAction::verbsrc/gcode_stream.rs:572 | method | 10 | 5 | 1 | 0 | 0.7 | |
| StreamShared::newsrc/gcode_stream.rs:598 | method | 9 | 1 | 2 | 2 | 0.7 | |
| MarlinLink::exchangesrc/gcode_stream.rs:1270 | method | 56 | 11 | 1 | 3 | 0.7 | |
| next_stream_idsrc/gcode_stream.rs:677 | fn | 5 | 1 | 1 | 0 | 0.6 | |
| line_hits_wiresrc/gcode_stream.rs:791 | fn | 4 | 2 | 1 | 2 | 0.6 | |
| source_linessrc/gcode_stream.rs:798 | fn | 27 | 7 | 1 | 0 | 0.6 | |
| run_stream_workersrc/gcode_stream.rs:1105 | fn | 116 | 25 | 1 | 7 | 0.6 | |
| GcodeDialect::wake_bytessrc/gcode_stream.rs:174 | method | 6 | 2 | 2 | 0 | 0.6 | |
| GcodeDialect::handshake_drainsrc/gcode_stream.rs:182 | method | 6 | 2 | 2 | 0 | 0.6 | |
| MarlinLink::reportsrc/gcode_stream.rs:1330 | method | 17 | 5 | 1 | 3 | 0.6 | |
| MachineErrorRecord::to_jsonsrc/gcode_stream.rs:296 | method | 3 | 1 | 1 | 0 | 0.6 | |
| GcodeDialect::namesrc/gcode_stream.rs:158 | method | 6 | 2 | 0 | 0 | 0.5 | |
| OperatorPause::to_jsonsrc/gcode_stream.rs:261 | method | 9 | 1 | 0 | 0 | 0.5 | |
| AlarmRecord::to_jsonsrc/gcode_stream.rs:281 | method | 3 | 1 | 0 | 0 | 0.5 | |
| CheckPassRecord::to_jsonsrc/gcode_stream.rs:323 | method | 8 | 1 | 0 | 0 | 0.5 | |
| StopRecord::to_jsonsrc/gcode_stream.rs:351 | method | 12 | 1 | 0 | 0 | 0.5 | |
| ControlLogEntry::to_jsonsrc/gcode_stream.rs:376 | method | 8 | 1 | 0 | 0 | 0.5 | |
| GcodeStreamSnapshot::to_jsonsrc/gcode_stream.rs:500 | method | 44 | 2 | 0 | 0 | 0.5 | |
| StreamShared::snapshotsrc/gcode_stream.rs:636 | method | 3 | 1 | 0 | 0 | 0.5 | |
| marlin_classify_tablesrc/gcode_stream.rs:1386 | fn | 10 | 1 | 0 | 1 | 0.5 | |
| grbl_classify_tablesrc/gcode_stream.rs:1398 | fn | 9 | 1 | 0 | 1 | 0.5 | |
| comment_stripping_matches_vm_rulesrc/gcode_stream.rs:1409 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| dialect_parsingsrc/gcode_stream.rs:1417 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| grbl_family_aliases_parse_as_grblsrc/gcode_stream.rs:1425 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| pause_on_defaults_and_the_m6_guardsrc/gcode_stream.rs:1433 | fn | 23 | 1 | 0 | 1 | 0.5 | |
| status_poll_defaults_by_dialectsrc/gcode_stream.rs:1458 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| simulated_marlin_stream_completes_with_line_accountingsrc/gcode_stream.rs:1466 | fn | 23 | 1 | 0 | 4 | 0.5 | |
| the_virtual_printer_prints_and_the_command_log_recomputessrc/gcode_stream.rs:1494 | fn | 40 | 1 | 0 | 7 | 0.5 | |
| the_virtual_printer_halts_the_stream_when_the_spool_runs_outsrc/gcode_stream.rs:1536 | fn | 17 | 2 | 0 | 4 | 0.5 | |
| a_plain_simulated_stream_logs_commands_and_sends_no_reportssrc/gcode_stream.rs:1555 | fn | 12 | 1 | 0 | 3 | 0.5 | |
| simulated_grbl_stream_wakes_and_bannerssrc/gcode_stream.rs:1569 | fn | 30 | 2 | 0 | 6 | 0.5 | |
| machine_error_fails_the_stream_with_line_contextsrc/gcode_stream.rs:1601 | fn | 13 | 1 | 0 | 3 | 0.5 | |
| cancel_stops_a_slow_streamsrc/gcode_stream.rs:1616 | fn | 15 | 1 | 0 | 4 | 0.5 | |
| start_rejects_bad_inputssrc/gcode_stream.rs:1633 | fn | 9 | 1 | 0 | 1 | 0.5 | |
| simulate_flag_defaults_the_endpointsrc/gcode_stream.rs:1644 | fn | 12 | 1 | 0 | 3 | 0.5 | |
| status_and_cancel_miss_are_soft_errorssrc/gcode_stream.rs:1658 | fn | 10 | 1 | 0 | 4 | 0.5 | |
| simulated_requests_are_recognised_for_the_hardware_gatesrc/gcode_stream.rs:1670 | fn | 13 | 1 | 0 | 4 | 0.5 |
Source not readable from this process.