enum ToClientTag [src]

All WebSocket messages sent by the server to the client begin with a ToClientTag byte. This enum is non-exhaustive only to avoid Illegal Behavior when malformed messages are sent over the socket; unnamed tags are an error condition and should terminate the connection. Every tag has a curresponding extern struct representing the full message (or a header of the message if it is variable-length). For instance, .hello corresponds to Hello. When introducing a tag, make sure to add a corresponding extern struct whose first field is this enum, and check its layout in the comptime block above.

Fields

hello
status_update
step_update
fuzz_source_index
fuzz_coverage_update
fuzz_entry_points
time_report_generic_result
time_report_compile_result
_

Source

pub const ToClientTag = enum(u8) { hello, status_update, step_update, // `--fuzz` fuzz_source_index, fuzz_coverage_update, fuzz_entry_points, // `--time-report` time_report_generic_result, time_report_compile_result, _, }