Module utilities

Source

Modules§

debug_tools
ipc
json
logging
Tracing-based logging setup. Useful documentation: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/layer/index.html#per-layer-filtering
panic_hooks
password
process
Utilities for process management, including tracking and spawning subprocesses.
reader
Utilities for working with streams.
resource_lock
Re-entrant lock manager that prevents multiple threads or processes from concurrently holding a lock on the same resource. I’m using it to mimic transactions in a database, but it could be used for other things too. It’s LLM generated and I don’t really understand all of it. Works on a best-effort basis; it’s likely to be flaky on network filesystems, FUSE, non-POSIX OSes, etc.
serde_value
Utilities for working with serde_json::Value objects, including insertion, extraction, and conversion operations.

Macros§

debug
debug_fmt
error
hc_internal_log_debug
Logs a message at the debug level.
hc_internal_log_error
Logs a message at the error level.
hc_internal_log_info
Logs a message at the info level.
hc_internal_log_warn
Logs a message at the warn level.
info
info_fmt
json
log
log_fmt
warn
warn_fmt

Structs§

BuildInfo

Constants§

COLUMN_UUID_DELIM
CURRENT_TEST_NAME

Traits§

Context
Provides the context method for Result.

Functions§

assert_string_contains
assert_string_not_contains
assert_vec_u8_eq
assert_vec_u8_ok_eq
assert_vec_u32_eq
assert_vec_u32_ok_eq
backtrace_print
backtrace_string
build_info
call_ipc
call_ipc_sync
cleanup_processes
feature
find_first_matching_key_for_value
fmt_mismatch_string
fmt_mismatch_vec_u8
fmt_mismatch_vec_u32
fork
generate_authentication_key
get_ctoolbox_process 🔒
get_current_test_name
get_service_name
get_this_executable
in_array
is_subprocess
listen_for_message
maybe_send_message
remove_suffix
send_message
setup_panic_hooks
shutdown
sleep
strtohex
strtovec
substr_mb
this_pid
u8_vec_to_formatted_hex
u32_vec_to_formatted_hex
upgrade_in_place
usleep
vectohex
vectostr
wait_for_ctoolbox_exit_and_clean_up
wait_for_ctoolbox_process_exit
wait_for_message

Type Aliases§

Result
Result<T, Error>

Attribute Macros§

ctb_test